NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Hash< K, V > Class Template Reference

#include <Hash.hpp>

Public Types

typedef HashEntry< K, V > Entry
 

Public Member Functions

 Hash (void)
 
 Hash (const Hash< K, V > &other)
 
 ~Hash (void)
 
const Set< Entry > & getEntries (void) const
 
Set< Entry > & getEntries (void)
 
int getSize (void) const
 
bool contains (const K &key) const
 
const EntrysearchEntry (const K &key) const
 
EntrysearchEntry (const K &key)
 
const K * searchKey (const K &key) const
 
K * searchKey (const K &key)
 
const V * search (const K &key) const
 
V * search (const K &key)
 
const EntrygetEntry (const K &key) const
 
EntrygetEntry (const K &key)
 
const K & getKey (const K &key) const
 
K & getKey (const K &key)
 
const V & get (const K &key) const
 
V & get (const K &key)
 
void clear (void)
 
void reset (void)
 
void setCapacity (int numItems)
 
void compact (void)
 
void set (const Hash< K, V > &other)
 
V & add (const K &key, const V &value)
 
V & add (const K &key)
 
V & remove (const K &key)
 
replace (const K &key, const V &value)
 
int findSlot (const K &key) const
 
int firstSlot (void) const
 
int nextSlot (int slot) const
 
const EntrygetSlot (int slot) const
 
EntrygetSlot (int slot)
 
Hash< K, V > & operator= (const Hash< K, V > &other)
 
const V & operator[] (const K &key) const
 
V & operator[] (const K &key)
 

Detailed Description

template<class K, class V>
class FW::Hash< K, V >

Definition at line 110 of file Hash.hpp.

Member Typedef Documentation

template<class K, class V>
typedef HashEntry<K, V> FW::Hash< K, V >::Entry

Definition at line 113 of file Hash.hpp.

Constructor & Destructor Documentation

template<class K, class V>
FW::Hash< K, V >::Hash ( void  )
inline

Definition at line 116 of file Hash.hpp.

template<class K, class V>
FW::Hash< K, V >::Hash ( const Hash< K, V > &  other)
inline

Definition at line 117 of file Hash.hpp.

template<class K, class V>
FW::Hash< K, V >::~Hash ( void  )
inline

Definition at line 118 of file Hash.hpp.

Member Function Documentation

template<class K, class V>
V& FW::Hash< K, V >::add ( const K &  key,
const V &  value 
)
inline

Definition at line 143 of file Hash.hpp.

template<class K, class V>
V& FW::Hash< K, V >::add ( const K &  key)
inline

Definition at line 144 of file Hash.hpp.

template<class K, class V>
void FW::Hash< K, V >::clear ( void  )
inline

Definition at line 137 of file Hash.hpp.

template<class K, class V>
void FW::Hash< K, V >::compact ( void  )
inline

Definition at line 140 of file Hash.hpp.

template<class K, class V>
bool FW::Hash< K, V >::contains ( const K &  key) const
inline

Definition at line 123 of file Hash.hpp.

template<class K, class V>
int FW::Hash< K, V >::findSlot ( const K &  key) const
inline

Definition at line 148 of file Hash.hpp.

template<class K, class V>
int FW::Hash< K, V >::firstSlot ( void  ) const
inline

Definition at line 149 of file Hash.hpp.

template<class K, class V>
const V& FW::Hash< K, V >::get ( const K &  key) const
inline

Definition at line 134 of file Hash.hpp.

template<class K, class V>
V& FW::Hash< K, V >::get ( const K &  key)
inline

Definition at line 135 of file Hash.hpp.

template<class K, class V>
const Set<Entry>& FW::Hash< K, V >::getEntries ( void  ) const
inline

Definition at line 120 of file Hash.hpp.

template<class K, class V>
Set<Entry>& FW::Hash< K, V >::getEntries ( void  )
inline

Definition at line 121 of file Hash.hpp.

template<class K, class V>
const Entry& FW::Hash< K, V >::getEntry ( const K &  key) const
inline

Definition at line 130 of file Hash.hpp.

template<class K, class V>
Entry& FW::Hash< K, V >::getEntry ( const K &  key)
inline

Definition at line 131 of file Hash.hpp.

template<class K, class V>
const K& FW::Hash< K, V >::getKey ( const K &  key) const
inline

Definition at line 132 of file Hash.hpp.

template<class K, class V>
K& FW::Hash< K, V >::getKey ( const K &  key)
inline

Definition at line 133 of file Hash.hpp.

template<class K, class V>
int FW::Hash< K, V >::getSize ( void  ) const
inline

Definition at line 122 of file Hash.hpp.

template<class K, class V>
const Entry& FW::Hash< K, V >::getSlot ( int  slot) const
inline

Definition at line 151 of file Hash.hpp.

template<class K, class V>
Entry& FW::Hash< K, V >::getSlot ( int  slot)
inline

Definition at line 152 of file Hash.hpp.

template<class K, class V>
int FW::Hash< K, V >::nextSlot ( int  slot) const
inline

Definition at line 150 of file Hash.hpp.

template<class K, class V>
Hash<K, V>& FW::Hash< K, V >::operator= ( const Hash< K, V > &  other)
inline

Definition at line 154 of file Hash.hpp.

template<class K, class V>
const V& FW::Hash< K, V >::operator[] ( const K &  key) const
inline

Definition at line 155 of file Hash.hpp.

template<class K, class V>
V& FW::Hash< K, V >::operator[] ( const K &  key)
inline

Definition at line 156 of file Hash.hpp.

template<class K, class V>
V& FW::Hash< K, V >::remove ( const K &  key)
inline

Definition at line 145 of file Hash.hpp.

template<class K, class V>
V FW::Hash< K, V >::replace ( const K &  key,
const V &  value 
)
inline

Definition at line 146 of file Hash.hpp.

template<class K, class V>
void FW::Hash< K, V >::reset ( void  )
inline

Definition at line 138 of file Hash.hpp.

template<class K, class V>
const V* FW::Hash< K, V >::search ( const K &  key) const
inline

Definition at line 128 of file Hash.hpp.

template<class K, class V>
V* FW::Hash< K, V >::search ( const K &  key)
inline

Definition at line 129 of file Hash.hpp.

template<class K, class V>
const Entry* FW::Hash< K, V >::searchEntry ( const K &  key) const
inline

Definition at line 124 of file Hash.hpp.

template<class K, class V>
Entry* FW::Hash< K, V >::searchEntry ( const K &  key)
inline

Definition at line 125 of file Hash.hpp.

template<class K, class V>
const K* FW::Hash< K, V >::searchKey ( const K &  key) const
inline

Definition at line 126 of file Hash.hpp.

template<class K, class V>
K* FW::Hash< K, V >::searchKey ( const K &  key)
inline

Definition at line 127 of file Hash.hpp.

template<class K, class V>
void FW::Hash< K, V >::set ( const Hash< K, V > &  other)
inline

Definition at line 141 of file Hash.hpp.

template<class K, class V>
void FW::Hash< K, V >::setCapacity ( int  numItems)
inline

Definition at line 139 of file Hash.hpp.


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