#include <mxmStringList.h>
Inheritance diagram for mxmStringList:
Public Member Functions | |
mxmStringList (const mxmStringList &other_string_list) | |
mxmStringList & | operator= (const mxmStringList &other_string_list) |
mxmStringList (const mxmString &a_string) | |
mxmString & | operator[] (int index) |
Returns a reference to the i th string in the list. | |
mxmString | operator[] (int index) const |
Returns a copy to the i th 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) |
Only mxmString s can be added to this list - attempts to add items of other type will result in terminal failure.
[khe]
Kai Hergenroether
|
For testing purposes. No checking done for I/O failures! |
|
For testing purposes. No checking done for I/O failures! |
|
Returns a copy to the
If |
|
Returns a reference to the For missing string items empty strings will automatically be appended.
A negative |
|
Removes duplicate item strings from the list. Sequential ordering of the genuine strings in the list is preserved. |