![]() |
VR-Forces 4.0.4 Class Documentation
|
Class: DtEntityIdIntAssociationList. More...
Public Member Functions | |
| DtEntityIdIntAssociationList () | |
| virtual | ~DtEntityIdIntAssociationList () |
| DtEntityIdIntAssociationList (const DtEntityIdIntAssociationList &orig) | |
| DtEntityIdIntAssociationList & | operator= (const DtEntityIdIntAssociationList &orig) |
| virtual void | add (int integer, const DtEntityIdentifier &entityId) |
| Add a new association. | |
| virtual bool | remove (int integer) |
| Remove association by integer. | |
| virtual bool | remove (const DtEntityIdentifier &entityId) |
| Remove association by entity id. | |
| virtual DtEntityIdentifier | lookup (int integer, bool *found=NULL) const |
| Find an entity id associated with an integer. | |
| virtual int | lookup (const DtEntityIdentifier &entityId, bool *found=NULL) const |
| Find an integer associated with an entity id. | |
| virtual bool | contains (int integer) const |
| Returns true if this item is in the list. | |
| virtual bool | contains (const DtEntityIdentifier &entityId) const |
| Returns true if this item is in the list. | |
| virtual const DtList * | listOfIntegers () const |
| Return a list of all integers in the association list. | |
| virtual const DtList * | listOfEntityIds () const |
| Return a list of all entity identifiers in the association list. | |
| virtual int | count () const |
| Returns the total number of associations in the list. | |
| void | empty () |
| Removes all items from the association list. | |
| void | copyDataFrom (const DtEntityIdIntAssociationList &source) |
| Adds all associations in source to this association list. | |
Protected Attributes | |
| DtHashList | myEntIdToIntHashList |
| DtHashList | myIntToEntIdHashList |
Class: DtEntityIdIntAssociationList.
This class creates an association list between entity identifiers and integers.
| virtual DtEntityIdIntAssociationList::~DtEntityIdIntAssociationList | ( | ) | [virtual] |
| DtEntityIdIntAssociationList::DtEntityIdIntAssociationList | ( | const DtEntityIdIntAssociationList & | orig | ) |
| DtEntityIdIntAssociationList& DtEntityIdIntAssociationList::operator= | ( | const DtEntityIdIntAssociationList & | orig | ) |
| virtual void DtEntityIdIntAssociationList::add | ( | int | integer, |
| const DtEntityIdentifier & | entityId | ||
| ) | [virtual] |
Add a new association.
| virtual bool DtEntityIdIntAssociationList::remove | ( | int | integer | ) | [virtual] |
Remove association by integer.
| virtual bool DtEntityIdIntAssociationList::remove | ( | const DtEntityIdentifier & | entityId | ) | [virtual] |
Remove association by entity id.
| virtual DtEntityIdentifier DtEntityIdIntAssociationList::lookup | ( | int | integer, |
| bool * | found = NULL |
||
| ) | const [virtual] |
Find an entity id associated with an integer.
| virtual int DtEntityIdIntAssociationList::lookup | ( | const DtEntityIdentifier & | entityId, |
| bool * | found = NULL |
||
| ) | const [virtual] |
Find an integer associated with an entity id.
| virtual bool DtEntityIdIntAssociationList::contains | ( | int | integer | ) | const [virtual] |
Returns true if this item is in the list.
| virtual bool DtEntityIdIntAssociationList::contains | ( | const DtEntityIdentifier & | entityId | ) | const [virtual] |
Returns true if this item is in the list.
| virtual const DtList* DtEntityIdIntAssociationList::listOfIntegers | ( | ) | const [virtual] |
Return a list of all integers in the association list.
| virtual const DtList* DtEntityIdIntAssociationList::listOfEntityIds | ( | ) | const [virtual] |
Return a list of all entity identifiers in the association list.
| virtual int DtEntityIdIntAssociationList::count | ( | ) | const [virtual] |
Returns the total number of associations in the list.
| void DtEntityIdIntAssociationList::empty | ( | ) |
Removes all items from the association list.
Non-virtual called by the destructor.
| void DtEntityIdIntAssociationList::copyDataFrom | ( | const DtEntityIdIntAssociationList & | source | ) |
Adds all associations in source to this association list.
DtHashList DtEntityIdIntAssociationList::myEntIdToIntHashList [protected] |
DtHashList DtEntityIdIntAssociationList::myIntToEntIdHashList [protected] |