Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

HashTableKey_Pointer Class Reference
[Containers]

Hash table key implementation for void* keys. More...

Inheritance diagram for HashTableKey_Pointer:

HashTableKey

List of all members.


Public Member Functions

 HashTableKey_Pointer ()
 HashTableKey_Pointer (const void *pointer)
virtual StringId GetType () const
virtual unsigned int GetHash () const
bool Compare (const HashTableKey *key) const
unsigned int GetInt () const

Detailed Description

Hash table key implementation for void* keys.

Author:
Mattias Gustavsson
Hash table key implementation for void* keys.

Definition at line 20 of file HashTableKey_Pointer.h.


Constructor & Destructor Documentation

HashTableKey_Pointer::HashTableKey_Pointer (  ) 

Definition at line 5 of file HashTableKey_Pointer.cpp.

HashTableKey_Pointer::HashTableKey_Pointer ( const void *  pointer  ) 

Constructor

Parameters:
pointer The actual number to be used for this key

Definition at line 15 of file HashTableKey_Pointer.cpp.


Member Function Documentation

StringId HashTableKey_Pointer::GetType (  )  const [virtual]

Used to find out the specific type of HashTableKey that this class implements

Returns:
A string id ("HashTableKey_Pointer") uniquely identifying this key type

Implements HashTableKey.

Definition at line 25 of file HashTableKey_Pointer.cpp.

unsigned int HashTableKey_Pointer::GetHash (  )  const [virtual]

Gets the hash number for this key

Returns:
The hash number for this key

Implements HashTableKey.

Definition at line 34 of file HashTableKey_Pointer.cpp.

bool HashTableKey_Pointer::Compare ( const HashTableKey key  )  const [virtual]

Compares this key with the specified key.

Returns:
True if the two keys are identical, false if they are not

Implements HashTableKey.

Definition at line 50 of file HashTableKey_Pointer.cpp.

unsigned int HashTableKey_Pointer::GetInt (  )  const

Gets the actual number used for this key

Returns:
The number used for this key

Definition at line 42 of file HashTableKey_Pointer.cpp.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.