VR-Link API Documentation for HLA 1516
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:

List of all members.

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 const DtString stringRep () const
 Get the string representation of this key.

Protected Member Functions

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

Protected Attributes

std::wstring myString

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

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

copy constructor


Member Function Documentation

virtual DtBaseHashKey* DtWStringHashKey::clone ( ) const [virtual]

Make a copy of this hash key.

Implements DtBaseHashKey.

virtual DtU32 DtWStringHashKey::computeHashValue ( ) [protected, virtual]

Compute the hashed value for this key.

Implements DtBaseHashKey.

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 May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)