The DejaVU Framework --
hush 3.1
-
[up]
[top] -
index
make
include
source
logic
grammar
scripts
html
configure
mx
slides
talks
scenes
reports
projects
<body bgcolor="#FFFFFF" text="#000000">
include
include
include
include
include
using std::vector;
using std::list;
using std::invalid_argument;
using std::string;
using std::pair;
// Any Hash Class must provide two methods: hash() and numBuckets().
template
<h4 align=right text=red> DefaultHash</h4><hr>
class DefaultHash
{
public:
// throws invalid_argument if numBuckets is non-positive
DefaultHash(int numBuckets = 101) throw (invalid_argument);
int hash(const T& key) const;
int numBuckets() const { return mNumBuckets; }
protected:
int mNumBuckets;
};<hr>
// Specialization for strings
template <>
<hr>>