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

Class: DtEntityIdIntAssociationList. More...

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

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 Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)