]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPReferenceList.h
Entry rwlock is no longer needed as concurrency is managed
[openldap] / contrib / ldapc++ / src / LDAPReferenceList.h
index 4d26fdc54f84cbaffed12ef9c6211ce535a883f3..d528b2d65d5e24492412e9ada739765fdf6dac44 100644 (file)
 
 class LDAPSearchReference;
 
-typedef list<LDAPSearchReference> RefList;
+typedef std::list<LDAPSearchReference> RefList;
 
 /**
- * Container class for storing a list of Search References
+ * Container class for storing a std::list of Search References
  *
  * Used internally only by LDAPSearchResults
  */
@@ -22,7 +22,7 @@ class LDAPReferenceList{
        typedef RefList::const_iterator const_iterator;
 
         /**
-         * Constructs an empty list.
+         * Constructs an empty std::list.
          */   
         LDAPReferenceList();
 
@@ -42,6 +42,12 @@ class LDAPReferenceList{
          */
         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.
          */