VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtEntityIdIntAssociationList Class Reference

Class: DtEntityIdIntAssociationList. More...

List of all members.

Public Member Functions

 DtEntityIdIntAssociationList ()
virtual ~DtEntityIdIntAssociationList ()
 DtEntityIdIntAssociationList (const DtEntityIdIntAssociationList &orig)
DtEntityIdIntAssociationListoperator= (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

Detailed Description

Class: DtEntityIdIntAssociationList.

This class creates an association list between entity identifiers and integers.


Constructor & Destructor Documentation


Member Function Documentation

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.

Removes all items from the association list.

Non-virtual called by the destructor.

Adds all associations in source to this association list.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)