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

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

#include <LDAPControlSet.h>

Public Member Functions

 LDAPControlSet ()
 Constructs an empty std::list. More...
 
 LDAPControlSet (const LDAPControlSet &cs)
 Copy-constructor. More...
 
 LDAPControlSet (LDAPControl **controls)
 For internal use only. More...
 
 ~LDAPControlSet ()
 Destructor. More...
 
size_t size () const
 
bool empty () const
 
const_iterator begin () const
 
const_iterator end () const
 
void add (const LDAPCtrl &ctrl)
 Adds one element to the end of the list. More...
 
LDAPControl ** toLDAPControlArray () const
 Translates the list to a 0-terminated array of pointers to LDAPControl-structures as needed by the C-API. More...
 

Static Public Member Functions

static void freeLDAPControlArray (LDAPControl **ctrl)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ LDAPControlSet() [1/3]

LDAPControlSet::LDAPControlSet ( )

Constructs an empty std::list.

◆ LDAPControlSet() [2/3]

LDAPControlSet::LDAPControlSet ( const LDAPControlSet cs)

Copy-constructor.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ LDAPControlSet() [3/3]

LDAPControlSet::LDAPControlSet ( LDAPControl **  controls)

For internal use only.

This constructor creates a new LDAPControlSet for a 0-terminiated array of LDAPControl-structures as used by the C-API

Parameters
controlspointer to a 0-terminated array of pointers to LDAPControll-structures
Note
: untested til now. Due to lack of server that return Controls

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ ~LDAPControlSet()

LDAPControlSet::~LDAPControlSet ( )

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.

Member Function Documentation

◆ add()

void LDAPControlSet::add ( const LDAPCtrl ctrl)

Adds one element to the end of the list.

Parameters
ctrlThe Control to add to the list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ begin()

LDAPControlSet::const_iterator LDAPControlSet::begin ( ) const
Returns
A iterator that points to the first element of the list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ empty()

bool LDAPControlSet::empty ( ) const
Returns
true if there are zero LDAPCtrl-objects currently stored in this list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ end()

LDAPControlSet::const_iterator LDAPControlSet::end ( ) const
Returns
A iterator that points to the element after the last element of the list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ freeLDAPControlArray()

void LDAPControlSet::freeLDAPControlArray ( LDAPControl **  ctrl)
static

◆ size()

size_t LDAPControlSet::size ( ) const
Returns
The number of LDAPCtrl-objects that are currently stored in this list.

References DEBUG, and LDAP_DEBUG_TRACE.

◆ toLDAPControlArray()

LDAPControl ** LDAPControlSet::toLDAPControlArray ( ) const

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

References DEBUG, and LDAP_DEBUG_TRACE.


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