ldapsdk  0.0.1
LDAPModList.h
Go to the documentation of this file.
1 // $OpenLDAP$
2 /*
3  * Copyright 2000-2013 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 
7 
8 #ifndef LDAP_MOD_LIST_H
9 #define LDAP_MOD_LIST_H
10 
11 #include <ldap.h>
12 #include <list>
13 #include <LDAPModification.h>
14 
19  typedef std::list<LDAPModification> ListType;
20 
21  public :
25  LDAPModList();
26 
30  LDAPModList(const LDAPModList&);
31 
36  void addModification(const LDAPModification &mod);
37 
42  LDAPMod** toLDAPModArray();
43 
47  bool empty() const;
48 
52  unsigned int size() const;
53 
54  private :
55  ListType m_modList;
56 };
57 #endif //LDAP_MOD_LIST_H
58 
59 
LDAPModList::size
unsigned int size() const
Definition: LDAPModList.cpp:46
LDAP_DEBUG_TRACE
#define LDAP_DEBUG_TRACE
Definition: debug.h:12
LDAPModList.h
LDAPModification.h
DEBUG
#define DEBUG(level, arg)
Definition: debug.h:30
LDAPModList::addModification
void addModification(const LDAPModification &mod)
Adds one element to the end of the list.
Definition: LDAPModList.cpp:24
LDAPModList::LDAPModList
LDAPModList()
Constructs an empty list.
Definition: LDAPModList.cpp:15
LDAP_DEBUG_CONSTRUCT
#define LDAP_DEBUG_CONSTRUCT
Definition: debug.h:13
LDAPModList::toLDAPModArray
LDAPMod ** toLDAPModArray()
Translates the list to a 0-terminated array of LDAPMod-structures as needed by the C-API.
Definition: LDAPModList.cpp:29
LDAPModList::empty
bool empty() const
Definition: LDAPModList.cpp:42
LDAPModification
Definition: LDAPModification.h:14
LDAPModList
This container class is used to store multiple LDAPModification-objects.
Definition: LDAPModList.h:18
debug.h