ldapsdk
0.0.1
|
Container class to store multiple string-objects. More...
#include <StringList.h>
Public Types | |
typedef ListType::const_iterator | const_iterator |
Public Member Functions | |
StringList () | |
Constructs an empty list. More... | |
StringList (const StringList &sl) | |
Copy-constructor. More... | |
StringList (char **values) | |
For internal use only. More... | |
~StringList () | |
Destructor. More... | |
char ** | toCharArray () const |
The methods converts the list to a 0-terminated array of c-Strings. More... | |
void | add (const std::string &value) |
Adds one element to the end of the list. More... | |
size_t | size () const |
bool | empty () const |
const_iterator | begin () const |
const_iterator | end () const |
void | clear () |
removes all elements from the list More... | |
Container class to store multiple string-objects.
typedef ListType::const_iterator StringList::const_iterator |
StringList::StringList | ( | ) |
Constructs an empty list.
StringList::StringList | ( | const StringList & | sl | ) |
Copy-constructor.
StringList::StringList | ( | char ** | values | ) |
For internal use only.
This constructor is used by the library internally to create a list of string from a array for c-Strings (char*)thar was returned by the C-API
StringList::~StringList | ( | ) |
Destructor.
References DEBUG, and LDAP_DEBUG_TRACE.
void StringList::add | ( | const std::string & | value | ) |
Adds one element to the end of the list.
attr | The attribute to add to the list. |
Referenced by LDAPUrl::string2list().
StringList::const_iterator StringList::begin | ( | ) | const |
Referenced by LDAPAttributeList::addAttribute(), LDAPAttrType::getName(), LDAPObjClass::getName(), operator<<(), LDAPSchema::setAttributeTypes(), LDAPSchema::setObjectClasses(), and LdifWriter::writeRecord().
void StringList::clear | ( | ) |
removes all elements from the list
bool StringList::empty | ( | ) | const |
Referenced by LDAPAttrType::getName(), and LDAPObjClass::getName().
StringList::const_iterator StringList::end | ( | ) | const |
Referenced by LDAPAttributeList::addAttribute(), operator<<(), LDAPSchema::setAttributeTypes(), LDAPSchema::setObjectClasses(), and LdifWriter::writeRecord().
size_t StringList::size | ( | ) | const |
char ** StringList::toCharArray | ( | ) | const |
The methods converts the list to a 0-terminated array of c-Strings.
Referenced by LDAPSearchRequest::sendRequest().