LDAPModList Class Reference

This container class is used to store multiple LDAPModification-objects. More...

#include <LDAPModList.h>

List of all members.

Public Member Functions

 LDAPModList ()
 Constructs an empty list.
 LDAPModList (const LDAPModList &)
 Copy-constructor.
void addModification (const LDAPModification &mod)
 Adds one element to the end of the list.
LDAPMod ** toLDAPModArray ()
 Translates the list to a 0-terminated array of LDAPMod-structures as needed by the C-API.
bool empty () const
unsigned int size () const

Private Types

typedef std::list
< LDAPModification
ListType

Private Attributes

ListType m_modList


Detailed Description

This container class is used to store multiple LDAPModification-objects.

Member Typedef Documentation

typedef std::list<LDAPModification> LDAPModList::ListType [private]


Constructor & Destructor Documentation

LDAPModList::LDAPModList (  ) 

Constructs an empty list.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

LDAPModList::LDAPModList ( const LDAPModList ml  ) 

Copy-constructor.

References DEBUG, LDAP_DEBUG_CONSTRUCT, and m_modList.


Member Function Documentation

void LDAPModList::addModification ( const LDAPModification mod  ) 

Adds one element to the end of the list.

Parameters:
mod The LDAPModification to add to the std::list.

References DEBUG, LDAP_DEBUG_TRACE, and m_modList.

bool LDAPModList::empty (  )  const

Returns:
true, if the ModList contains no Operations

References m_modList.

unsigned int LDAPModList::size (  )  const

Returns:
number of Modifications in the ModList

References m_modList.

LDAPMod ** LDAPModList::toLDAPModArray (  ) 

Translates the list to a 0-terminated array of LDAPMod-structures as needed by the C-API.

References DEBUG, LDAP_DEBUG_TRACE, and m_modList.

Referenced by LDAPModifyRequest::sendRequest().


Member Data Documentation


The documentation for this class was generated from the following files:

doxygen