MySQL 5.6.14 Source Code Document
|
#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.
Definition at line 27 of file sql_hset.h.
Constructs an empty hash. Does not allocate memory, it is done upon the first insert. Thus does not cause or return errors.
Definition at line 36 of file sql_hset.h.
Destroy the hash by freeing the buckets table. Does not call destructors for the elements.
Definition at line 44 of file sql_hset.h.
|
inline |
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. |
Definition at line 57 of file sql_hset.h.
|
inline |
Is this hash set empty?
Definition at line 67 of file sql_hset.h.
|
inline |
Returns the number of unique elements.
Definition at line 69 of file sql_hset.h.