]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPModList.h
Entry rwlock is no longer needed as concurrency is managed
[openldap] / contrib / ldapc++ / src / LDAPModList.h
index 6c6cb702f6ffbe9a5faae4248b17349bff4d27fc..0edcd9e86e953052bc9d287842b49017431e2468 100644 (file)
@@ -3,28 +3,46 @@
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
-// $Id: LDAPModList.h,v 1.3 2000/08/31 17:43:49 rhafer Exp $
 
 #ifndef LDAP_MOD_LIST_H
 #define LDAP_MOD_LIST_H
 
 #include <ldap.h>
 #include <list>
-#include "LDAPModification.h"
+#include <LDAPModification.h>
 
-typedef list<LDAPModification> ModList;
+typedef std::list<LDAPModification> ModList;
 
+/**
+ * This container class is used to store multiple LDAPModification-objects.
+ */
 class LDAPModList{
-       private : 
-               ModList m_modList;
 
        public : 
+        /**
+         * Constructs an empty std::list.
+         */   
                LDAPModList();
-               LDAPModList(const LDAPModList&);
-
+               
+        /**
+         * Copy-constructor
+         */
+        LDAPModList(const LDAPModList&);
+
+        /**
+         * Adds one element to the end of the std::list.
+         * @param mod The LDAPModification to add to the std::list.
+         */
                void addModification(const LDAPModification &mod);
-               LDAPMod** toLDAPModArray();
 
+        /**
+         * Translates the std::list to a 0-terminated array of
+         * LDAPMod-structures as needed by the C-API
+         */
+        LDAPMod** toLDAPModArray();
+
+       private : 
+               ModList m_modList;
 };
 #endif //LDAP_MOD_LIST_H