Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

hashVector< H, T > Class Template Reference

#include <hash_vector.hh>

List of all members.

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 &)

template<class H, class T>
class hashVector< H, T >


Constructor & Destructor Documentation

template<class H, class T>
hashVector< H, T >::hashVector size_t  max,
size_t(*)(const H &)  f
[inline]
 

00055     : vector<T>(max), hashfun(f)
00056 {
00057     // no further initialization
00058 }

template<class H, class T>
hashVector< H, T >::hashVector size_t  max,
size_t(*)(const H &)  f,
T &  initialValue
[inline]
 

00064     : vector<T>(max, initialValue), hashfun(f)
00065 {
00066     // no further initialization
00067 }

template<class H, class T>
hashVector< H, T >::hashVector const hashVector< H, T > &  v  )  [inline]
 

00073     : vector<T>(v), hashfun(v.hashfun)
00074 {
00075     // no further initialization
00076 }

template<class H, class T>
hashVector< H, T >::hashVector size_t  max,
size_t(*)(const H &)  f
 

template<class H, class T>
hashVector< H, T >::hashVector size_t  max,
size_t(*)(const H &)  f,
T &  initialValue
 

template<class H, class T>
hashVector< H, T >::hashVector const hashVector< H, T > &  v  ) 
 


Member Function Documentation

template<class H, class T>
const T& hashVector< H, T >::operator[] const H &  index  )  const
 

template<class H, class T>
T& hashVector< H, T >::operator[] const H &  index  ) 
 

template<class H, class T>
const T & hashVector< H, T >::operator[] const H &  index  )  const [inline]
 

00091 {
00092   // subscript a hash vector
00093   // hash the index value before indexing vector
00094   return vector<T>::operator[] ((*hashfun)(index) % size());
00095 }

template<class H, class T>
T & hashVector< H, T >::operator[] const H &  index  )  [inline]
 

00082 {
00083   // subscript a hash vector
00084   // hash the index value before indexing vector
00085   return vector<T>::operator[] ((*hashfun)(index) % size());
00086 }


Member Data Documentation

template<class H, class T>
size_t(* hashVector< H, T >::hashfun)(const H &) [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:16:43 2011 for BOSS6.5.5 by  doxygen 1.3.9.1