#include <ContainerInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Inherited by DigitalSpaces::DIDUIDList1Impl.
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 DUID * | GetCurrent () |
| Gets 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. | |
| const DUID * | GetCurrentAndAdvance () |
| Calls GetCurrent then Advance, returning the value from GetCurrent. | |
| bool | Empty () |
| Check if the list is empty. | |
| void | PushBack (const DUID *) |
| Appends an ID to the list. | |
| void | Clear () |
| Removes all items from the list. | |
| void DigitalSpaces::DIDUIDList1::Restart | ( | ) |
| const DUID* DigitalSpaces::DIDUIDList1::GetCurrent | ( | ) |
| bool DigitalSpaces::DIDUIDList1::Advance | ( | ) |
Advances "current".
Reimplemented in DigitalSpaces::DIDUIDList1Impl.
| bool DigitalSpaces::DIDUIDList1::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::DIDUIDList1Impl.
| unsigned int DigitalSpaces::DIDUIDList1::Size | ( | ) |
| const DUID* DigitalSpaces::DIDUIDList1::GetCurrentAndAdvance | ( | ) |
Calls GetCurrent then Advance, returning the value from GetCurrent.
This is a convenience function.
Reimplemented in DigitalSpaces::DIDUIDList1Impl.
| bool DigitalSpaces::DIDUIDList1::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::DIDUIDList1Impl.
| void DigitalSpaces::DIDUIDList1::PushBack | ( | const DUID * | ) |
| void DigitalSpaces::DIDUIDList1::Clear | ( | ) |
1.5.6