StringList Class Reference

Container class to store multiple string-objects. More...

#include <StringList.h>

List of all members.

Public Types

typedef
ListType::const_iterator 
const_iterator

Public Member Functions

 StringList ()
 Constructs an empty list.
 StringList (const StringList &sl)
 Copy-constructor.
 StringList (char **values)
 For internal use only.
 ~StringList ()
 Destructor.
char ** toCharArray () const
 The methods converts the list to a 0-terminated array of c-Strings.
void add (const std::string &value)
 Adds one element to the end of the list.
size_t size () const
 
Returns:
The number of strings that are currently stored in this list.

bool empty () const
 
Returns:
true if there are zero strings currently stored in this list.

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

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

void clear ()
 removes all elements from the list

Private Types

typedef std::list
< std::string > 
ListType

Private Attributes

ListType m_data


Detailed Description

Container class to store multiple string-objects.

Member Typedef Documentation

typedef std::list<std::string> StringList::ListType [private]

typedef ListType::const_iterator StringList::const_iterator


Constructor & Destructor Documentation

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.


Member Function Documentation

char ** StringList::toCharArray (  )  const

The methods converts the list to a 0-terminated array of c-Strings.

void StringList::add ( const std::string &  value  ) 

Adds one element to the end of the list.

Parameters:
attr The attribute to add to the list.

size_t StringList::size (  )  const

Returns:
The number of strings that are currently stored in this list.

bool StringList::empty (  )  const

Returns:
true if there are zero strings currently stored in this list.

StringList::const_iterator StringList::begin (  )  const

Returns:
A iterator that points to the first element of the list.

StringList::const_iterator StringList::end (  )  const

Returns:
A iterator that points to the element after the last element of the list.

void StringList::clear (  ) 

removes all elements from the list


Member Data Documentation

ListType StringList::m_data [private]


The documentation for this class was generated from the following files:
Generated on Sat Sep 22 10:21:53 2007 for ldapsdk by  doxygen 1.5.3