Commit 54a5aaf1 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

empty() and size() methods

parent 04692957
......@@ -38,3 +38,11 @@ LDAPMod** LDAPModList::toLDAPModArray(){
}
return ret;
}
bool LDAPModList::empty() const {
return m_modList.empty();
}
unsigned int LDAPModList::size() const {
return m_modList.size();
}
......@@ -16,9 +16,9 @@
* This container class is used to store multiple LDAPModification-objects.
*/
class LDAPModList{
typedef std::list<LDAPModification> ListType;
typedef std::list<LDAPModification> ListType;
public :
public :
/**
* Constructs an empty list.
*/
......@@ -41,7 +41,17 @@ class LDAPModList{
*/
LDAPMod** toLDAPModArray();
private :
/**
* @returns true, if the ModList contains no Operations
*/
bool empty() const;
/**
* @returns number of Modifications in the ModList
*/
unsigned int size() const;
private :
ListType m_modList;
};
#endif //LDAP_MOD_LIST_H
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment