mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
empty() and size() methods
This commit is contained in:
parent
d989f19668
commit
20d2188cbf
@ -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();
|
||||
}
|
||||
|
@ -41,6 +41,16 @@ class LDAPModList{
|
||||
*/
|
||||
LDAPMod** toLDAPModArray();
|
||||
|
||||
/**
|
||||
* @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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user