return m_attrs.size();
}
+bool LDAPAttributeList::empty() const{
+ DEBUG(LDAP_DEBUG_TRACE,"LDAPAttribute::empty()" << endl);
+ return m_attrs.empty();
+}
+
LDAPAttributeList::const_iterator LDAPAttributeList::begin() const{
DEBUG(LDAP_DEBUG_TRACE,"LDAPAttribute::begin()" << endl);
return m_attrs.begin();
*/
size_t size() const;
+ /**
+ * @return true if there are zero LDAPAttribute-objects currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/
return data.size();
}
+bool LDAPControlSet::empty() const {
+ DEBUG(LDAP_DEBUG_TRACE,"LDAPControlSet::empty()" << endl);
+ return data.empty();
+}
+
LDAPControlSet::const_iterator LDAPControlSet::begin() const{
DEBUG(LDAP_DEBUG_TRACE,"LDAPControlSet::begin()" << endl);
return data.begin();
LDAPControl** LDAPControlSet::toLDAPControlArray() const{
DEBUG(LDAP_DEBUG_TRACE, "LDAPControlSet::toLDAPControlArray()" << endl);
- if(data.size() == 0){
+ if(data.empty()){
return 0;
}else{
LDAPControl** ret= new LDAPControl*[data.size()+1];
*/
size_t size() const ;
+ /**
+ * @return true if there are zero LDAPCtrl-objects currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/
return m_entries.size();
}
+bool LDAPEntryList::empty() const{
+ return m_entries.empty();
+}
+
LDAPEntryList::const_iterator LDAPEntryList::begin() const{
return m_entries.begin();
}
*/
size_t size() const;
+ /**
+ * @return true if there are zero entries currently stored in the list.
+ */
+ bool empty() const;
+
/**
* @return An iterator pointing to the first element of the list.
*/
ostream& operator << (ostream& s, LDAPException e){
s << "Error " << e.m_res_code << ": " << e.m_res_string;
- if (e.m_err_string.size() > 0) {
+ if (!e.m_err_string.empty()) {
s << endl << "additional info: " << e.m_err_string ;
}
return s;
return m_refs.size();
}
+bool LDAPReferenceList::empty() const{
+ return m_refs.empty();
+}
+
LDAPReferenceList::const_iterator LDAPReferenceList::begin() const{
return m_refs.begin();
}
*/
size_t size() const;
+ /**
+ * @return true if there are zero LDAPSearchReference-objects
+ * currently stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/
return m_urls.size();
}
+bool LDAPUrlList::empty() const{
+ return m_urls.empty();
+}
+
LDAPUrlList::const_iterator LDAPUrlList::begin() const{
return m_urls.begin();
}
*/
size_t size() const;
+ /**
+ * @return true if there are zero LDAPUrl-objects currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/
}
char** StringList::toCharArray() const{
- if(size() > 0){
+ if(!empty()){
char** ret = new char*[size()+1];
StringList::const_iterator i;
int j=0;
return m_data.size();
}
+bool StringList::empty() const{
+ return m_data.empty();
+}
+
StringList::const_iterator StringList::begin() const{
return m_data.begin();
}
*/
size_t size() const;
+ /**
+ * @return true if there are zero strings currently
+ * stored in this list.
+ */
+ bool empty() const;
+
/**
* @return A iterator that points to the first element of the list.
*/