decUniqueStringList Class Reference

List of unique strings. More...

#include <decUniqueStringList.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decUniqueStringList ()
 Creates an unique string list.
 ~decUniqueStringList ()
 Cleans up the list.
Management
int GetStringCount () const
 Retrieves the number of strings.
const char * GetStringAt (int index) const
 Retrieves the string at the given index.
int IndexOfString (const char *string) const
 Retrieves the index of the string or -1 if not found.
bool HasString (const char *string) const
 Determines if the given string exists.
void AddString (const char *string)
 Adds a string to the list.
void RemoveString (const char *string)
 Removes a string from the list.
void RemoveAllStrings ()
 Removes all strings.

Detailed Description

List of unique strings.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decUniqueStringList::decUniqueStringList (  )

Creates an unique string list.

decUniqueStringList::~decUniqueStringList (  )

Cleans up the list.


Member Function Documentation

void decUniqueStringList::AddString ( const char *  string )

Adds a string to the list.

const char* decUniqueStringList::GetStringAt ( int  index ) const

Retrieves the string at the given index.

int decUniqueStringList::GetStringCount (  ) const [inline]

Retrieves the number of strings.

bool decUniqueStringList::HasString ( const char *  string ) const

Determines if the given string exists.

int decUniqueStringList::IndexOfString ( const char *  string ) const

Retrieves the index of the string or -1 if not found.

void decUniqueStringList::RemoveAllStrings (  )

Removes all strings.

void decUniqueStringList::RemoveString ( const char *  string )

Removes a string from the list.


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