#include <hash_vector.hh>
Public Member Functions | |
hashVector (size_t max, size_t(*f)(const H &)) | |
hashVector (size_t max, size_t(*f)(const H &), T &initialValue) | |
hashVector (const hashVector< H, T > &v) | |
T & | operator[] (const H &index) |
const T & | operator[] (const H &index) const |
Private Attributes | |
size_t(* | hashfun )(const H &) |
Definition at line 32 of file hash_vector.hh.
hashVector< H, T >::hashVector | ( | size_t | max, | |
size_t(*)(const H &) | f | |||
) | [inline] |
hashVector< H, T >::hashVector | ( | size_t | max, | |
size_t(*)(const H &) | f, | |||
T & | initialValue | |||
) | [inline] |
hashVector< H, T >::hashVector | ( | const hashVector< H, T > & | v | ) | [inline] |
const T & hashVector< H, T >::operator[] | ( | const H & | index | ) | const [inline] |
Definition at line 90 of file hash_vector.hh.
References hashVector< H, T >::hashfun, and delete_small_size::size.
00091 { 00092 // subscript a hash vector 00093 // hash the index value before indexing vector 00094 return vector<T>::operator[] ((*hashfun)(index) % size()); 00095 }
T & hashVector< H, T >::operator[] | ( | const H & | index | ) | [inline] |
Definition at line 81 of file hash_vector.hh.
References hashVector< H, T >::hashfun, and delete_small_size::size.
00082 { 00083 // subscript a hash vector 00084 // hash the index value before indexing vector 00085 return vector<T>::operator[] ((*hashfun)(index) % size()); 00086 }
size_t(* hashVector< H, T >::hashfun)(const H &) [private] |
Referenced by hashVector< H, T >::operator[]().