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

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

#include <LDAPUrlList.h>

Public Types

typedef ListType::const_iterator const_iterator
 

Public Member Functions

 LDAPUrlList ()
 Constructs an empty list. More...
 
 LDAPUrlList (const LDAPUrlList &urls)
 Copy-constructor. More...
 
 LDAPUrlList (char **urls)
 For internal use only. More...
 
 ~LDAPUrlList ()
 Destructor. More...
 
size_t size () const
 
bool empty () const
 
const_iterator begin () const
 
const_iterator end () const
 
void add (const LDAPUrl &url)
 Adds one element to the end of the list. More...
 

Detailed Description

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

Member Typedef Documentation

◆ const_iterator

typedef ListType::const_iterator LDAPUrlList::const_iterator

Constructor & Destructor Documentation

◆ LDAPUrlList() [1/3]

LDAPUrlList::LDAPUrlList ( )

Constructs an empty list.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ LDAPUrlList() [2/3]

LDAPUrlList::LDAPUrlList ( const LDAPUrlList urls)

Copy-constructor.

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ LDAPUrlList() [3/3]

LDAPUrlList::LDAPUrlList ( char **  urls)

For internal use only.

This constructor is used by the library internally to create a std::list of URLs from a array of C-strings that was return by the C-API

References DEBUG, and LDAP_DEBUG_CONSTRUCT.

◆ ~LDAPUrlList()

LDAPUrlList::~LDAPUrlList ( )

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.

Member Function Documentation

◆ add()

void LDAPUrlList::add ( const LDAPUrl url)

Adds one element to the end of the list.

Parameters
attrThe attribute to add to the list.

◆ begin()

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

Referenced by LDAPAsynConnection::referralConnect().

◆ empty()

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

◆ end()

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

Referenced by LDAPAsynConnection::referralConnect().

◆ size()

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

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