VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtEntityIdIntAssociationList Class Reference

Class: DtEntityIdIntAssociationList.

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

Public Member Functions

 DtEntityIdIntAssociationList ()
 
virtual ~DtEntityIdIntAssociationList ()
 
 DtEntityIdIntAssociationList (const DtEntityIdIntAssociationList &orig)
 
DtEntityIdIntAssociationListoperator= (const DtEntityIdIntAssociationList &orig)
 
virtual void add (int integer, const DtEntityIdentifier &entityId)
 
virtual bool remove (int integer)
 
virtual bool remove (const DtEntityIdentifier &entityId)
 
virtual DtEntityIdentifier lookup (int integer, bool *found=NULL) const
 
virtual int lookup (const DtEntityIdentifier &entityId, bool *found=NULL) const
 
virtual bool contains (int integer) const
 
virtual bool contains (const DtEntityIdentifier &entityId) const
 
virtual const DtList * listOfIntegers () const
 
virtual const DtList * listOfEntityIds () const
 
virtual int count () const
 
void empty ()
 
void copyDataFrom (const DtEntityIdIntAssociationList &source)
 

Protected Attributes

DtHashList myEntIdToIntHashList
 
DtHashList myIntToEntIdHashList
 

Constructor & Destructor Documentation

DtEntityIdIntAssociationList::DtEntityIdIntAssociationList ( )
virtual DtEntityIdIntAssociationList::~DtEntityIdIntAssociationList ( )
virtual
DtEntityIdIntAssociationList::DtEntityIdIntAssociationList ( const DtEntityIdIntAssociationList orig)

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.

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.

Member Data Documentation

DtHashList DtEntityIdIntAssociationList::myEntIdToIntHashList
protected
DtHashList DtEntityIdIntAssociationList::myIntToEntIdHashList
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)