#include <ContainerInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Inherited by DigitalSpaces::DIStringPairListImpl.
The implementation needs to keep an internal state, of which of its entries is "current".
Public Member Functions | |
| void | Restart () |
| Resets "current" to the first item. | |
| const char * | GetCurrentLeft () |
| Gets the left half of the "current" entry. | |
| const char * | GetCurrentRight () |
| Gets the right half of the "current" entry. | |
| bool | Advance () |
| Advances "current". | |
| bool | AtEnd () |
| Check if "current" is past the end of the list. | |
| unsigned int | Size () |
| Returns the length of the list. | |
| bool | Empty () |
| Check if the list is empty. | |
| void | PushBack (const char *left, const char *right) |
| Appends a pair of strings to the list. | |
| void | Clear () |
| Removes all items from the list. | |
| void DigitalSpaces::DIStringPairList::Restart | ( | ) |
| const char* DigitalSpaces::DIStringPairList::GetCurrentLeft | ( | ) |
| const char* DigitalSpaces::DIStringPairList::GetCurrentRight | ( | ) |
| bool DigitalSpaces::DIStringPairList::Advance | ( | ) |
Advances "current".
Reimplemented in DigitalSpaces::DIStringPairListImpl.
| bool DigitalSpaces::DIStringPairList::AtEnd | ( | ) |
Check if "current" is past the end of the list.
This will be the same as checking if Advance has returned false. If true, GetCurrent returns undefined answers.
Reimplemented in DigitalSpaces::DIStringPairListImpl.
| unsigned int DigitalSpaces::DIStringPairList::Size | ( | ) |
| bool DigitalSpaces::DIStringPairList::Empty | ( | ) |
Check if the list is empty.
Depending on the implementation, this may be faster then calling Size and comparing to zero, particularly in cases where the list is not empty.
Reimplemented in DigitalSpaces::DIStringPairListImpl.
| void DigitalSpaces::DIStringPairList::PushBack | ( | const char * | left, | |
| const char * | right | |||
| ) |
| void DigitalSpaces::DIStringPairList::Clear | ( | ) |
1.5.6