#include <hash_vector.hh>
Public Member Functions | |
hashVector (const hashVector< H, T > &v) | |
hashVector (size_t max, size_t(*f)(const H &), T &initialValue) | |
hashVector (size_t max, size_t(*f)(const H &)) | |
hashVector (const hashVector< H, T > &v) | |
hashVector (size_t max, size_t(*f)(const H &), T &initialValue) | |
hashVector (size_t max, size_t(*f)(const H &)) | |
const T & | operator[] (const H &index) const |
T & | operator[] (const H &index) |
const T & | operator[] (const H &index) const |
T & | operator[] (const H &index) |
Private Attributes | |
size_t(* | hashfun )(const H &) |
|
00055 : vector<T>(max), hashfun(f) 00056 { 00057 // no further initialization 00058 }
|
|
00064 : vector<T>(max, initialValue), hashfun(f) 00065 { 00066 // no further initialization 00067 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00091 { 00092 // subscript a hash vector 00093 // hash the index value before indexing vector 00094 return vector<T>::operator[] ((*hashfun)(index) % size()); 00095 }
|
|
00082 { 00083 // subscript a hash vector 00084 // hash the index value before indexing vector 00085 return vector<T>::operator[] ((*hashfun)(index) % size()); 00086 }
|
|
|