VR-Link API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions | Protected Attributes
DtBaseHashKey Class Reference

DtBaseHashKey is an abstract base class for hash keys. More...

+ Inheritance diagram for DtBaseHashKey:
+ Collaboration diagram for DtBaseHashKey:

List of all members.

Public Member Functions

 DtBaseHashKey ()
 default constructor
virtual ~DtBaseHashKey ()
 destructor
 DtBaseHashKey (const DtBaseHashKey &orig)
 copy constructor
DtBaseHashKeyoperator= (const DtBaseHashKey &orig)
 assignment operator
virtual bool operator== (const DtBaseHashKey &other) const
 equality operator
virtual bool operator!= (const DtBaseHashKey &other) const
 equality operator
virtual DtU32 hashValue () const
 Get the hashed value for this key.
virtual DtBaseHashKeyclone () const =0
 Make a copy of this hash key.
virtual const DtString stringRep () const =0
 Get the string representation of this key.
virtual bool equalTo (const DtBaseHashKey &otherKey) const
 Subclasses may override this to provide an optimized comparison between two keys.

Protected Member Functions

virtual DtU32 computeHashValue ()=0
 Compute the hashed value for this key.

Protected Attributes

bool myHashValueIsComputed
 myHashValueIsComputed is modified in hashValue()
DtU32 myHashValue
 myHashValue is modified in the const function hashValue()

Detailed Description

DtBaseHashKey is an abstract base class for hash keys.

DtHashlist has been deprecated, and replaced by std::map. This

Deprecated:
This class has been deprecated, see DtHashList

Constructor & Destructor Documentation

default constructor

virtual DtBaseHashKey::~DtBaseHashKey ( ) [virtual]

destructor

copy constructor


Member Function Documentation

virtual DtBaseHashKey* DtBaseHashKey::clone ( ) const [pure virtual]
virtual DtU32 DtBaseHashKey::computeHashValue ( ) [protected, pure virtual]
virtual bool DtBaseHashKey::equalTo ( const DtBaseHashKey otherKey) const [virtual]

Subclasses may override this to provide an optimized comparison between two keys.

Base implementation calls operator== which uses strings to compare.

Reimplemented in DtPtrHashKey, and DtIntHashKey.

virtual DtU32 DtBaseHashKey::hashValue ( ) const [virtual]

Get the hashed value for this key.

This may modify myHashValueIsComputed and myHashValue

virtual bool DtBaseHashKey::operator!= ( const DtBaseHashKey other) const [virtual]

equality operator

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

assignment operator

virtual bool DtBaseHashKey::operator== ( const DtBaseHashKey other) const [virtual]

equality operator

Reimplemented in DtObjectIdHashKey, and DtEntityIdentifierHashKey.

virtual const DtString DtBaseHashKey::stringRep ( ) const [pure virtual]

Get the string representation of this key.

Implemented in DtWStringHashKey, DtStringHashKey, DtPtrHashKey, DtIntHashKey, DtObjectIdHashKey, DtEntityIdentifierHashKey, and DtSystemHashKey.


Member Data Documentation

DtU32 DtBaseHashKey::myHashValue [mutable, protected]

myHashValue is modified in the const function hashValue()

bool DtBaseHashKey::myHashValueIsComputed [mutable, protected]

myHashValueIsComputed is modified in hashValue()


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)