mxmStringList Class Reference
[modularMX Runtime Platform Core]

List of strings, offering some nice convenience functions. More...

#include <mxmStringList.h>

Inheritance diagram for mxmStringList:

mxmList mxmContainer mxmObject mxmContainerInterface mxmInterface List of all members.

Public Member Functions

 mxmStringList (const mxmStringList &other_string_list)
mxmStringListoperator= (const mxmStringList &other_string_list)
 mxmStringList (const mxmString &a_string)
mxmStringoperator[] (int index)
 Returns a reference to the ith string in the list.
mxmString operator[] (int index) const
 Returns a copy to the ith string in a const list.
mxmStringList operator+ (const mxmStringList &list_to_add) const
 Appends to the list the strings stored in the list_to_add.
mxmStringList operator- (const mxmStringList &list_to_substract) const
 Removes from the list all strings that are also present in the list_to_substract.
mxmStringList operator, (const mxmString &yet_another_string)
 Returns a string list resulting from appending to the tail of the local string list the string specified as argument.
void add (const mxmString &txt)
 For your convenience.
mxmString concatenate (const mxmString &separator_string) const
 Returns the concatenation string of all strings in the list, separated by the specified separator_string.
bool contains (const mxmString &string) const
 Tells whether or not the specified string is contained in the list.
bool containsPrefixOf (const mxmString &string) const
 Tells whether or not the list contains a prefix of the specified string.
int containsElementsOf (const mxmStringList &list) const
 Tells how many members of the specified string list are contained in the list the method is invoked for.
bool isSubsetOf (const mxmStringList &list) const
 Tells whether or not the local string list is a subset of the specified one.
void removeDuplicates (void)
 Removes duplicate item strings from the list.
bool equalStringSets (const mxmStringList &other_set)
 Tests for string set equality.
void dump (std::FILE *outfile) const
 For testing purposes.
void dump (const mxmString &filename)
 For testing purposes.

Static Public Member Functions

static mxmStringList emptyList (void)
 Returns an empty string list.

Private Member Functions

void init_mxmStringList (void)

Detailed Description

List of strings, offering some nice convenience functions.

Only mxmString s can be added to this list - attempts to add items of other type will result in terminal failure.

Author:
[khe] Kai Hergenroether


Member Function Documentation

void mxmStringList::dump const mxmString filename  ) 
 

For testing purposes.

No checking done for I/O failures!

void mxmStringList::dump std::FILE *  outfile  )  const
 

For testing purposes.

No checking done for I/O failures!

mxmString mxmStringList::operator[] int  index  )  const
 

Returns a copy to the ith string in a const list.

If index is greater than the size of the list an empty string will be returned. A negative index will be mapped to 0.

mxmString & mxmStringList::operator[] int  index  ) 
 

Returns a reference to the ith string in the list.

For missing string items empty strings will automatically be appended.

A negative index will be mapped to 0.

void mxmStringList::removeDuplicates void   ) 
 

Removes duplicate item strings from the list.

Sequential ordering of the genuine strings in the list is preserved.


The documentation for this class was generated from the following files:
Generated on Fri Jun 29 17:21:05 2007 for MxPEG SDK by  doxygen 1.4.6