VR-Link API Documentation for HLA Evolved
 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
DtWStringHashKey Class Reference

Instances of DtWStringHashKey are used as a hash key made from a wide string. More...

+ Inheritance diagram for DtWStringHashKey:
+ Collaboration diagram for DtWStringHashKey:

Public Member Functions

 DtWStringHashKey ()
 empty constructor – generally should not be called More...
 
 DtWStringHashKey (const std::wstring &str)
 default constructor More...
 
 DtWStringHashKey (const wchar_t *str)
 alternate constructor More...
 
virtual ~DtWStringHashKey ()
 destructor More...
 
 DtWStringHashKey (const DtWStringHashKey &orig)
 copy constructor More...
 
DtWStringHashKeyoperator= (const DtWStringHashKey &orig)
 assignment operator More...
 
virtual DtBaseHashKeyclone () const
 Make a copy of this hash key. More...
 
virtual const std::wstring & value () const
 Gt hash key value. More...
 
virtual void setValue (const std::wstring &val)
 Set 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 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

std::wstring myString
 
- 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 DtWStringHashKey are used as a hash key made from a wide string.

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

Deprecated:
This class has been deprecated, see DtHashList

Constructor & Destructor Documentation

DtWStringHashKey::DtWStringHashKey ( )

empty constructor – generally should not be called

DtWStringHashKey::DtWStringHashKey ( const std::wstring &  str)

default constructor

DtWStringHashKey::DtWStringHashKey ( const wchar_t *  str)

alternate constructor

virtual DtWStringHashKey::~DtWStringHashKey ( )
virtual

destructor

DtWStringHashKey::DtWStringHashKey ( const DtWStringHashKey orig)

copy constructor

Member Function Documentation

virtual DtBaseHashKey* DtWStringHashKey::clone ( ) const
virtual

Make a copy of this hash key.

Implements DtBaseHashKey.

virtual DtU64 DtWStringHashKey::computeHashValue ( )
protectedvirtual

Compute the hashed value for this key.

Implements DtBaseHashKey.

virtual DtHashKeyType DtWStringHashKey::hashKeyType ( ) const
inlinevirtual

Get the type of HashKey.

Reimplemented from DtBaseHashKey.

References DtWStringHashKeyType.

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

assignment operator

virtual void DtWStringHashKey::setValue ( const std::wstring &  val)
virtual

Set hash key value.

virtual const DtString DtWStringHashKey::stringRep ( ) const
virtual

Get the string representation of this key.

Since this value is a wide string, it is expensive to convert to a string.

Implements DtBaseHashKey.

virtual const std::wstring& DtWStringHashKey::value ( ) const
virtual

Gt hash key value.

Member Data Documentation

std::wstring DtWStringHashKey::myString
protected

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

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)