#include <CommonEnviromentParserList.h>
Public Types | |
typedef std::list< CommonEnviromentParseElement > | Element |
typedef slist< CommonEnviromentParseElement > | Element |
Public Member Functions | |
CommonEnviromentParserList () | |
Ctor. | |
CommonEnviromentParserList (const CommonEnviromentParserList &rhs) | |
Copy ctor. | |
virtual | ~CommonEnviromentParserList () |
Dtor. | |
CommonEnviromentParserList & | operator= (const CommonEnviromentParserList &rhs) |
Copy operator. | |
bool | operator== (const CommonEnviromentParserList &rhs) const |
Equality operator. | |
bool | operator!= (const CommonEnviromentParserList &rhs) const |
The logical negation of operator==(). | |
bool | Empty () const |
Test whether the list is empty. | |
int | Size () const |
Give the size of the list in CommonEnviromentParseElements. | |
void | Push (std::string key, double argument) |
Push a statement onto the list. | |
void | Push (std::string key, std::string argument) |
Push a statement onto the list. | |
bool | Find (std::string key) const |
Search for a given statement. | |
CommonEnviromentParseElement | Argument (std::string key) const |
Give a statement's argument. | |
Element::const_iterator | Iterator () const |
Give an iterator to the list of elements. | |
Element::const_iterator | Begin () const |
Give the iterator that points to the start of the list. | |
Element::const_iterator | End () const |
Give the iterator that points beyond the end if the list. | |
CommonEnviromentParserList () | |
Ctor. | |
CommonEnviromentParserList (const CommonEnviromentParserList &rhs) | |
Copy ctor. | |
virtual | ~CommonEnviromentParserList () |
Dtor. | |
CommonEnviromentParserList & | operator= (const CommonEnviromentParserList &rhs) |
Copy operator. | |
bool | operator== (const CommonEnviromentParserList &rhs) const |
Equality operator. | |
bool | operator!= (const CommonEnviromentParserList &rhs) const |
The logical negation of operator==(). | |
bool | empty () const |
Test whether the list is empty. | |
int | size () const |
Give the size of the list in CommonEnviromentParseElements. | |
void | push (string key, double argument) |
Push a statement onto the list. | |
void | push (string key, string argument) |
Push a statement onto the list. | |
bool | find (string key) const |
Search for a given statement. | |
CommonEnviromentParseElement | argument (string key) const |
Give a statement's argument. | |
Element::const_iterator | iterator () const |
Give an iterator to the list of elements. | |
Element::const_iterator | begin () const |
Give the iterator that points to the start of the list. | |
Element::const_iterator | end () const |
Give the iterator that points beyond the end if the list. |
Definition at line 17 of file C++/Common/Enviroment/CommonEnviromentParserList.h.
typedef std::list<CommonEnviromentParseElement> CommonEnviromentParserList::Element |
Definition at line 22 of file C++/Common/Enviroment/CommonEnviromentParserList.h.
typedef slist<CommonEnviromentParseElement> CommonEnviromentParserList::Element |
Definition at line 18 of file Java/Common/Enviroment/CommonEnviromentParserList.h.
CommonEnviromentParserList::CommonEnviromentParserList | ( | ) |
Ctor.
CommonEnviromentParserList::CommonEnviromentParserList | ( | const CommonEnviromentParserList & | rhs | ) |
Copy ctor.
virtual CommonEnviromentParserList::~CommonEnviromentParserList | ( | ) | [virtual] |
Dtor.
CommonEnviromentParserList::CommonEnviromentParserList | ( | ) |
Ctor.
CommonEnviromentParserList::CommonEnviromentParserList | ( | const CommonEnviromentParserList & | rhs | ) |
Copy ctor.
virtual CommonEnviromentParserList::~CommonEnviromentParserList | ( | ) | [virtual] |
Dtor.
CommonEnviromentParserList& CommonEnviromentParserList::operator= | ( | const CommonEnviromentParserList & | rhs | ) |
Copy operator.
rhs | The reference object. |
bool CommonEnviromentParserList::operator== | ( | const CommonEnviromentParserList & | rhs | ) | const |
Equality operator.
Two objects of this type are equal iff every CommonEnviromentParseElement held in each is exactly equal, their ordering is the same, and the size of the two lists is equal.
rhs | The reference object. |
bool CommonEnviromentParserList::operator!= | ( | const CommonEnviromentParserList & | rhs | ) | const |
The logical negation of operator==().
rhs | The reference object. |
bool CommonEnviromentParserList::Empty | ( | ) | const |
Test whether the list is empty.
int CommonEnviromentParserList::Size | ( | ) | const |
Give the size of the list in CommonEnviromentParseElements.
void CommonEnviromentParserList::Push | ( | std::string | key, | |
double | argument | |||
) |
Push a statement onto the list.
This function will not replicate keys (lvalues). If this key matchs an already existing key then this function will over write the argument.
key | The statement's lvalue. | |
argument | The statement's rvalue. |
void CommonEnviromentParserList::Push | ( | std::string | key, | |
std::string | argument | |||
) |
Push a statement onto the list.
This function will not replicate keys (lvalues). If this key matchs an already existing key then this function will over write the argument.
key | The statement's lvalue. | |
argument | The statement's rvalue. |
bool CommonEnviromentParserList::Find | ( | std::string | key | ) | const |
Search for a given statement.
key | The lvalue of the statement of interest. |
CommonEnviromentParseElement CommonEnviromentParserList::Argument | ( | std::string | key | ) | const |
Give a statement's argument.
If the statement does not exist then the results of this call are undefined.
key | The lvalue of the statement. |
Element::const_iterator CommonEnviromentParserList::Iterator | ( | ) | const |
Give an iterator to the list of elements.
The elements of the list may be visisted by this iterator.
Element::const_iterator CommonEnviromentParserList::Begin | ( | ) | const |
Give the iterator that points to the start of the list.
Element::const_iterator CommonEnviromentParserList::End | ( | ) | const |
Give the iterator that points beyond the end if the list.
CommonEnviromentParserList& CommonEnviromentParserList::operator= | ( | const CommonEnviromentParserList & | rhs | ) |
Copy operator.
rhs | The reference object. |
bool CommonEnviromentParserList::operator== | ( | const CommonEnviromentParserList & | rhs | ) | const |
Equality operator.
Two objects of this type are equal iff every CommonEnviromentParseElement held in each is exactly equal, their ordering is the same, and the size of the two lists is equal.
rhs | The reference object. |
bool CommonEnviromentParserList::operator!= | ( | const CommonEnviromentParserList & | rhs | ) | const |
The logical negation of operator==().
rhs | The reference object. |
bool CommonEnviromentParserList::empty | ( | ) | const |
Test whether the list is empty.
int CommonEnviromentParserList::size | ( | ) | const |
Give the size of the list in CommonEnviromentParseElements.
void CommonEnviromentParserList::push | ( | string | key, | |
double | argument | |||
) |
Push a statement onto the list.
This function will not replicate keys (lvalues). If this key matchs an already existing key then this function will over write the argument.
key | The statement's lvalue. | |
argument | The statement's rvalue. |
void CommonEnviromentParserList::push | ( | string | key, | |
string | argument | |||
) |
Push a statement onto the list.
This function will not replicate keys (lvalues). If this key matchs an already existing key then this function will over write the argument.
key | The statement's lvalue. | |
argument | The statement's rvalue. |
bool CommonEnviromentParserList::find | ( | string | key | ) | const |
Search for a given statement.
key | The lvalue of the statement of interest. |
CommonEnviromentParseElement CommonEnviromentParserList::argument | ( | string | key | ) | const |
Give a statement's argument.
If the statement does not exist then the results of this call are undefined.
key | The lvalue of the statement. |
Element::const_iterator CommonEnviromentParserList::iterator | ( | ) | const |
Give an iterator to the list of elements.
The elements of the list may be visisted by this iterator.
Element::const_iterator CommonEnviromentParserList::begin | ( | ) | const |
Give the iterator that points to the start of the list.
Element::const_iterator CommonEnviromentParserList::end | ( | ) | const |
Give the iterator that points beyond the end if the list.