VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtEntityIdentifierHashKey Class Reference

Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers. More...

+ Inheritance diagram for DtEntityIdentifierHashKey:
+ Collaboration diagram for DtEntityIdentifierHashKey:

Public Member Functions

 DtEntityIdentifierHashKey ()
 empty constructor More...
 
 DtEntityIdentifierHashKey (const DtEntityIdentifier &id)
 default constructor More...
 
virtual ~DtEntityIdentifierHashKey ()
 destructor More...
 
 DtEntityIdentifierHashKey (const DtEntityIdentifierHashKey &orig)
 copy constructor More...
 
DtEntityIdentifierHashKeyoperator= (const DtEntityIdentifierHashKey &orig)
 assignment operator More...
 
virtual bool operator== (const DtBaseHashKey &other) const
 Override equality operator to NOT use stringRep(), as this is expensive. More...
 
virtual DtBaseHashKeyclone () const
 Make a copy of this hash key. More...
 
virtual const DtEntityIdentifiervalue () const
 Get hash key value. More...
 
virtual DtHashKeyType hashKeyType () const
 Get the type of HashKey. More...
 
virtual const DtString stringRep () const
 Get the string representation of this key. More...
 
- Public Member Functions inherited from DtBaseHashKey
 DtBaseHashKey ()
 default constructor More...
 
virtual ~DtBaseHashKey ()
 destructor More...
 
 DtBaseHashKey (const DtBaseHashKey &orig)
 copy constructor More...
 
DtBaseHashKeyoperator= (const DtBaseHashKey &orig)
 assignment operator More...
 
virtual bool operator!= (const DtBaseHashKey &other) const
 equality operator More...
 
virtual DtU32 hashValue () const
 Get the hashed value for this key. More...
 
virtual bool equalTo (const DtBaseHashKey &otherKey) const
 Subclasses may override this to provide an optimized comparison between two keys. More...
 

Protected Member Functions

virtual DtU64 computeHashValue ()
 Compute the hashed value for this key. More...
 

Protected Attributes

DtEntityIdentifier myId
 
- Protected Attributes inherited from DtBaseHashKey
bool myHashValueIsComputed
 myHashValueIsComputed is modified in hashValue() More...
 
DtU32 myHashValue
 myHashValue is modified in the const function hashValue() More...
 

Detailed Description

Instances of DtEntityIdentifierHashKey are hash keys made from DtEntityIdentifiers.

They can be used with DtHashList to store arbitrary pieces of data hashed by DtEntityIdentifier.

Constructor & Destructor Documentation

DtEntityIdentifierHashKey::DtEntityIdentifierHashKey ( )

empty constructor

DtEntityIdentifierHashKey::DtEntityIdentifierHashKey ( const DtEntityIdentifier id)

default constructor

virtual DtEntityIdentifierHashKey::~DtEntityIdentifierHashKey ( )
virtual

destructor

DtEntityIdentifierHashKey::DtEntityIdentifierHashKey ( const DtEntityIdentifierHashKey orig)

copy constructor

Member Function Documentation

virtual DtBaseHashKey* DtEntityIdentifierHashKey::clone ( ) const
virtual

Make a copy of this hash key.

Implements DtBaseHashKey.

virtual DtU64 DtEntityIdentifierHashKey::computeHashValue ( )
protectedvirtual

Compute the hashed value for this key.

Implements DtBaseHashKey.

virtual DtHashKeyType DtEntityIdentifierHashKey::hashKeyType ( ) const
inlinevirtual

Get the type of HashKey.

Reimplemented from DtBaseHashKey.

References DtEntityIdentifierHashKeyType.

DtEntityIdentifierHashKey& DtEntityIdentifierHashKey::operator= ( const DtEntityIdentifierHashKey orig)

assignment operator

virtual bool DtEntityIdentifierHashKey::operator== ( const DtBaseHashKey other) const
virtual

Override equality operator to NOT use stringRep(), as this is expensive.

Reimplemented from DtBaseHashKey.

virtual const DtString DtEntityIdentifierHashKey::stringRep ( ) const
virtual

Get the string representation of this key.

Implements DtBaseHashKey.

virtual const DtEntityIdentifier& DtEntityIdentifierHashKey::value ( ) const
virtual

Get hash key value.

Member Data Documentation

DtEntityIdentifier DtEntityIdentifierHashKey::myId
protected

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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)