the class HashSet, a set based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table
Definition at line 43 of file HashSet.h.
Public Member Functions | |
CHashSet () | |
CHashSet (int32_t size) | |
virtual const char * | get_name () const |
virtual | ~CHashSet () |
bool | insert_key (int32_t key, float64_t data) |
bool | search_key (int32_t key, float64_t &ret_data) |
void | delete_key (int32_t key) |
void | debug () |
Protected Attributes | |
HashSetNode ** | hash_array |
int32_t | array_size |
CHashSet | ( | ) |
Definition at line 16 of file HashSet.cpp.
CHashSet | ( | int32_t | size | ) |
Constructor for heap with specified size of hash array
Definition at line 22 of file HashSet.cpp.
~CHashSet | ( | ) | [virtual] |
Definition at line 32 of file HashSet.cpp.
void debug | ( | ) |
Debug "pretty" print
Definition at line 148 of file HashSet.cpp.
void delete_key | ( | int32_t | key | ) |
Deletes key from set
Definition at line 118 of file HashSet.cpp.
virtual const char* get_name | ( | ) | const [virtual] |
bool insert_key | ( | int32_t | key, | |
float64_t | data | |||
) |
Inserts nodes with certain key and data in set
Definition at line 44 of file HashSet.cpp.
bool search_key | ( | int32_t | key, | |
float64_t & | ret_data | |||
) |
Searchs data by key in set
Definition at line 76 of file HashSet.cpp.
int32_t array_size [protected] |
HashSetNode** hash_array [protected] |