Public Member Functions | |
IntHashSet () | |
void | setCapacity (int capacity) |
void | put (int x) |
bool | contains (int x) const |
int | size () const |
void | fillArray (int *a) const |
Private Member Functions | |
int | hashFunc (const int key) const |
Static Private Member Functions | |
static unsigned int | seed () |
Private Attributes | |
unsigned int | capacity_ |
Array< std::list< int > > | data_ |
int | size_ |
Definition at line 47 of file SundanceIntHashSet.hpp.
IntHashSet::IntHashSet | ( | ) |
Definition at line 8 of file SundanceIntHashSet.cpp.
bool IntHashSet::contains | ( | int | x | ) | const |
void IntHashSet::fillArray | ( | int * | a | ) | const |
int Sundance::IntHashSet::hashFunc | ( | const int | key | ) | const [inline, private] |
Definition at line 80 of file SundanceIntHashSet.hpp.
References capacity_, and seed().
Referenced by contains(), and put().
void Sundance::IntHashSet::put | ( | int | x | ) | [inline] |
static unsigned int Sundance::IntHashSet::seed | ( | ) | [inline, static, private] |
void IntHashSet::setCapacity | ( | int | capacity | ) |
int Sundance::IntHashSet::size | ( | ) | const [inline] |
unsigned int Sundance::IntHashSet::capacity_ [private] |
Array<std::list<int> > Sundance::IntHashSet::data_ [private] |
Definition at line 84 of file SundanceIntHashSet.hpp.
Referenced by contains(), fillArray(), put(), and setCapacity().
int Sundance::IntHashSet::size_ [private] |