Drag[en]gine Game Engine  1.0
decUnicodeStringList Class Reference

Ordered list of unicode strings. More...

#include <decUnicodeStringList.h>

Public Member Functions

Constructors and Destructors
 decUnicodeStringList ()
 Creates a new string list. More...
 
 decUnicodeStringList (const decUnicodeStringList &list)
 Creates a new string list as a copy of another string list. More...
 
 ~decUnicodeStringList ()
 Cleans up the string list. More...
 
Management
int GetCount () const
 Retrieves the number of strings. More...
 
const decUnicodeStringGetAt (int index) const
 Retrieves the string at the given index. More...
 
void SetAt (int index, const decUnicodeString &string)
 Sets the string at the given index. More...
 
int IndexOf (const decUnicodeString &string) const
 Retrieves the index of the first occurance of a string or -1 if not found. More...
 
bool Has (const decUnicodeString &string) const
 Determines if the given string is found one or more times in the list. More...
 
void Add (const decUnicodeString &string)
 Adds a string. More...
 
void InsertAt (const decUnicodeString &string, int index)
 Inserts a string. More...
 
void Move (int from, int to)
 Moves a string to a new position. More...
 
void RemoveFrom (int index)
 Removes the string from with the given index. More...
 
void RemoveAll ()
 Removes all strings. More...
 
void SortAscending ()
 Sorts strings in ascending order. More...
 
void SortDescending ()
 Sorts strings in descending order. More...
 
Operators
const decUnicodeStringoperator[] (int index) const
 Retrieves the string at the given index. More...
 
decUnicodeStringListoperator= (const decUnicodeStringList &list)
 Set this list to the content of another list. More...
 
bool operator== (const decUnicodeStringList &list)
 Determines if this list is equal to another list. More...
 
bool operator!= (const decUnicodeStringList &list)
 Determines if this list is not equal to another list. More...
 
decUnicodeStringList operator+ (const decUnicodeStringList &list) const
 Retrieves a new list containing the concatenation of this list and another one. More...
 
decUnicodeStringListoperator+= (const decUnicodeStringList &list)
 Appends another list to this list. More...
 
decUnicodeStringList operator+ (const decUnicodeString &string) const
 Retrieves a new list containing this list with the given string added to it. More...
 
decUnicodeStringListoperator+= (const decUnicodeString &string)
 Appends a string to this list. More...
 

Detailed Description

Ordered list of unicode strings.

The unicode strings in the list are allowed the be duplicates of each other but can not be NULL.

Author
Roland Pl├╝ss
Version
1.0
Date
2014

Constructor & Destructor Documentation

◆ decUnicodeStringList() [1/2]

decUnicodeStringList::decUnicodeStringList ( )

Creates a new string list.

◆ decUnicodeStringList() [2/2]

decUnicodeStringList::decUnicodeStringList ( const decUnicodeStringList list)

Creates a new string list as a copy of another string list.

◆ ~decUnicodeStringList()

decUnicodeStringList::~decUnicodeStringList ( )

Cleans up the string list.

Member Function Documentation

◆ Add()

void decUnicodeStringList::Add ( const decUnicodeString string)

Adds a string.

Referenced by GetCount().

◆ GetAt()

const decUnicodeString& decUnicodeStringList::GetAt ( int  index) const

Retrieves the string at the given index.

Referenced by GetCount().

◆ GetCount()

int decUnicodeStringList::GetCount ( ) const
inline

◆ Has()

bool decUnicodeStringList::Has ( const decUnicodeString string) const

Determines if the given string is found one or more times in the list.

Referenced by GetCount().

◆ IndexOf()

int decUnicodeStringList::IndexOf ( const decUnicodeString string) const

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

Referenced by GetCount().

◆ InsertAt()

void decUnicodeStringList::InsertAt ( const decUnicodeString string,
int  index 
)

Inserts a string.

Referenced by GetCount().

◆ Move()

void decUnicodeStringList::Move ( int  from,
int  to 
)

Moves a string to a new position.

Referenced by GetCount().

◆ operator!=()

bool decUnicodeStringList::operator!= ( const decUnicodeStringList list)

Determines if this list is not equal to another list.

Referenced by GetCount().

◆ operator+() [1/2]

decUnicodeStringList decUnicodeStringList::operator+ ( const decUnicodeStringList list) const

Retrieves a new list containing the concatenation of this list and another one.

Referenced by GetCount().

◆ operator+() [2/2]

decUnicodeStringList decUnicodeStringList::operator+ ( const decUnicodeString string) const

Retrieves a new list containing this list with the given string added to it.

◆ operator+=() [1/2]

decUnicodeStringList& decUnicodeStringList::operator+= ( const decUnicodeStringList list)

Appends another list to this list.

Referenced by GetCount().

◆ operator+=() [2/2]

decUnicodeStringList& decUnicodeStringList::operator+= ( const decUnicodeString string)

Appends a string to this list.

◆ operator=()

decUnicodeStringList& decUnicodeStringList::operator= ( const decUnicodeStringList list)

Set this list to the content of another list.

Referenced by GetCount().

◆ operator==()

bool decUnicodeStringList::operator== ( const decUnicodeStringList list)

Determines if this list is equal to another list.

Referenced by GetCount().

◆ operator[]()

const decUnicodeString& decUnicodeStringList::operator[] ( int  index) const

Retrieves the string at the given index.

Referenced by GetCount().

◆ RemoveAll()

void decUnicodeStringList::RemoveAll ( )

Removes all strings.

Referenced by GetCount().

◆ RemoveFrom()

void decUnicodeStringList::RemoveFrom ( int  index)

Removes the string from with the given index.

Referenced by GetCount().

◆ SetAt()

void decUnicodeStringList::SetAt ( int  index,
const decUnicodeString string 
)

Sets the string at the given index.

Referenced by GetCount().

◆ SortAscending()

void decUnicodeStringList::SortAscending ( )

Sorts strings in ascending order.

Referenced by GetCount().

◆ SortDescending()

void decUnicodeStringList::SortDescending ( )

Sorts strings in descending order.

Referenced by GetCount().


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