Classes | Public Member Functions | Protected Member Functions | Protected Attributes

DataStructures::StringKeyedHash< data_type, HASH_SIZE > Class Template Reference

Using a string as a identifier for a node, store an allocated pointer to that node. More...

#include <DS_StringKeyedHash.h>

Collaboration diagram for DataStructures::StringKeyedHash< data_type, HASH_SIZE >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Node

Public Member Functions

 StringKeyedHash ()
 Default constructor.
 ~StringKeyedHash ()
void Push (const char *key, const data_type &input, const char *file, unsigned int line)
data_type * Peek (const char *key)
bool Pop (data_type &out, const char *key, const char *file, unsigned int line)
bool RemoveAtIndex (StringKeyedHashIndex index, const char *file, unsigned int line)
StringKeyedHashIndex GetIndexOf (const char *key)
data_type & ItemAtIndex (const StringKeyedHashIndex &index)
RakNet::RakString KeyAtIndex (const StringKeyedHashIndex &index)
void GetItemList (DataStructures::List< data_type > &outputList, const char *file, unsigned int line)
unsigned int GetHashIndex (const char *str)
void Clear (const char *file, unsigned int line)
 Clear the list.

Protected Member Functions

void ClearIndex (unsigned int index, const char *file, unsigned int line)

Protected Attributes

Node ** nodeList

Detailed Description

template<class data_type, unsigned int HASH_SIZE>
class DataStructures::StringKeyedHash< data_type, HASH_SIZE >

Using a string as a identifier for a node, store an allocated pointer to that node.

Definition at line 32 of file DS_StringKeyedHash.h.


Constructor & Destructor Documentation

template<class data_type , unsigned int HASH_SIZE>
DataStructures::StringKeyedHash< data_type, HASH_SIZE >::StringKeyedHash (  ) 

Default constructor.

Definition at line 69 of file DS_StringKeyedHash.h.

template<class data_type , unsigned int HASH_SIZE>
DataStructures::StringKeyedHash< data_type, HASH_SIZE >::~StringKeyedHash (  ) 

Definition at line 75 of file DS_StringKeyedHash.h.

Here is the call graph for this function:


Member Function Documentation

template<class data_type , unsigned int HASH_SIZE>
void DataStructures::StringKeyedHash< data_type, HASH_SIZE >::Clear ( const char *  file,
unsigned int  line 
)

Clear the list.

Definition at line 264 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class data_type , unsigned int HASH_SIZE>
void DataStructures::StringKeyedHash< data_type, HASH_SIZE >::ClearIndex ( unsigned int  index,
const char *  file,
unsigned int  line 
) [protected]

Definition at line 277 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class data_type , unsigned int HASH_SIZE>
unsigned int DataStructures::StringKeyedHash< data_type, HASH_SIZE >::GetHashIndex ( const char *  str  ) 

Definition at line 314 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class data_type , unsigned int HASH_SIZE>
StringKeyedHashIndex DataStructures::StringKeyedHash< data_type, HASH_SIZE >::GetIndexOf ( const char *  key  ) 

Definition at line 204 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

template<class data_type , unsigned int HASH_SIZE>
void DataStructures::StringKeyedHash< data_type, HASH_SIZE >::GetItemList ( DataStructures::List< data_type > &  outputList,
const char *  file,
unsigned int  line 
)

Definition at line 291 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

template<class data_type , unsigned int HASH_SIZE>
data_type & DataStructures::StringKeyedHash< data_type, HASH_SIZE >::ItemAtIndex ( const StringKeyedHashIndex index  ) 

Definition at line 236 of file DS_StringKeyedHash.h.

template<class data_type , unsigned int HASH_SIZE>
RakNet::RakString DataStructures::StringKeyedHash< data_type, HASH_SIZE >::KeyAtIndex ( const StringKeyedHashIndex index  ) 

Definition at line 250 of file DS_StringKeyedHash.h.

template<class data_type , unsigned int HASH_SIZE>
data_type * DataStructures::StringKeyedHash< data_type, HASH_SIZE >::Peek ( const char *  key  ) 

Definition at line 96 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

template<class data_type , unsigned int HASH_SIZE>
bool DataStructures::StringKeyedHash< data_type, HASH_SIZE >::Pop ( data_type &  out,
const char *  key,
const char *  file,
unsigned int  line 
)

Definition at line 110 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

template<class data_type , unsigned int HASH_SIZE>
void DataStructures::StringKeyedHash< data_type, HASH_SIZE >::Push ( const char *  key,
const data_type &  input,
const char *  file,
unsigned int  line 
)

Definition at line 81 of file DS_StringKeyedHash.h.

Here is the call graph for this function:

template<class data_type , unsigned int HASH_SIZE>
bool DataStructures::StringKeyedHash< data_type, HASH_SIZE >::RemoveAtIndex ( StringKeyedHashIndex  index,
const char *  file,
unsigned int  line 
)

Definition at line 163 of file DS_StringKeyedHash.h.

Here is the call graph for this function:


Member Data Documentation

template<class data_type , unsigned int HASH_SIZE>
Node** DataStructures::StringKeyedHash< data_type, HASH_SIZE >::nodeList [protected]

Definition at line 65 of file DS_StringKeyedHash.h.


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