My Project
|
#include <sql_hset.h>
Classes | |
class | Iterator |
Public Types | |
enum | { START_SIZE = 8 } |
typedef T | Value_type |
Public Member Functions | |
Hash_set () | |
~Hash_set () | |
bool | insert (T *value) |
bool | is_empty () const |
size_t | size () const |
A type-safe wrapper around mysys HASH.
Constructs an empty hash. Does not allocate memory, it is done upon the first insert. Thus does not cause or return errors.
Destroy the hash by freeing the buckets table. Does not call destructors for the elements.
Insert a single value into a hash. Does not tell whether the value was inserted -- if an identical value existed, it is not replaced.
TRUE | Out of memory. |
FALSE | OK. The value either was inserted or existed in the hash. |
Is this hash set empty?
Returns the number of unique elements.