Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::HashItem< T > Class Template Reference

#include <HashTable.h>

Public Member Functions

 HashItem ()
 
 ~HashItem ()
 
int GetKey () const
 
void SetKey (int k)
 
GetObject ()
 
void SetObj (T obj)
 
bool operator== (const HashItem &item)
 
HashItemoperator= (const HashItem &item)
 

Detailed Description

template<typename T>
class Ult::HashItem< T >

Represents a key-value pair for entry in a HashTable. The key is of type int and the value is of type T.

Constructor & Destructor Documentation

◆ HashItem()

template<typename T>
Ult::HashItem< T >::HashItem ( )
inline

HashItem constructor.

◆ ~HashItem()

template<typename T>
Ult::HashItem< T >::~HashItem ( )
inline

HashItem destructor.

Member Function Documentation

◆ GetKey()

template<typename T>
int Ult::HashItem< T >::GetKey ( ) const
inline

Returns the key of the key-value pair.

◆ GetObject()

template<typename T>
T Ult::HashItem< T >::GetObject ( )
inline

Returns a copy of the value.

◆ operator=()

template<typename T>
HashItem & Ult::HashItem< T >::operator= ( const HashItem< T > & item)
inline

Sets the key and value of this HashItem equal to the input item's.

◆ operator==()

template<typename T>
bool Ult::HashItem< T >::operator== ( const HashItem< T > & item)
inline

Checks if the two HashItem keys are equal.

◆ SetKey()

template<typename T>
void Ult::HashItem< T >::SetKey ( int k)
inline

Set the key of the key-value pair.

◆ SetObj()

template<typename T>
void Ult::HashItem< T >::SetObj ( T obj)
inline

Stores a copy of the value.


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