ldapsdk  0.0.1
Public Member Functions | List of all members
LDAPModList Class Reference

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

#include <LDAPModList.h>

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ LDAPModList() [1/2]

LDAPModList::LDAPModList ( )

Constructs an empty list.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ LDAPModList() [2/2]

LDAPModList::LDAPModList ( const LDAPModList ml)

Copy-constructor.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

Member Function Documentation

◆ addModification()

void LDAPModList::addModification ( const LDAPModification mod)

Adds one element to the end of the list.

Parameters
modThe LDAPModification to add to the std::list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ empty()

bool LDAPModList::empty ( ) const
Returns
true, if the ModList contains no Operations

◆ size()

unsigned int LDAPModList::size ( ) const
Returns
number of Modifications in the ModList

◆ toLDAPModArray()

LDAPMod ** LDAPModList::toLDAPModArray ( )

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

References DEBUG, and LDAP_DEBUG_TRACE.

Referenced by LDAPModifyRequest::sendRequest().


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