]> 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 0a05a16ed7915ccfd52bb1aa392daa75ae7599f9..0edcd9e86e953052bc9d287842b49017431e2468 100644 (file)
@@ -9,18 +9,37 @@
 
 #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{
 
        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;