VR-Link API Documentation for DIS
 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
 DtWStringHashKey (const std::wstring &str)
 default constructor
 DtWStringHashKey (const wchar_t *str)
 alternate constructor
virtual ~DtWStringHashKey ()
 destructor
 DtWStringHashKey (const DtWStringHashKey &orig)
 copy constructor
DtWStringHashKeyoperator= (const DtWStringHashKey &orig)
 assignment operator
virtual DtBaseHashKeyclone () const
 Make a copy of this hash key.
virtual const std::wstring & value () const
 Gt hash key value.
virtual void setValue (const std::wstring &val)
 Set hash key value.
virtual DtHashKeyType hashKeyType () const
 Get the type of HashKey.
virtual const DtString stringRep () const
 Get the string representation of this key.
- Public Member Functions inherited from DtBaseHashKey
 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 bool equalTo (const DtBaseHashKey &otherKey) const
 Subclasses may override this to provide an optimized comparison between two keys.

Protected Member Functions

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

Protected Attributes

std::wstring myString
- Protected Attributes inherited from DtBaseHashKey
bool myHashValueIsComputed
 myHashValueIsComputed is modified in hashValue()
DtU32 myHashValue
 myHashValue is modified in the const function hashValue()

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 Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)