hamsterdb Embedded Database
2.1.7
|
#include <hamsterdb.hpp>
Public Member Functions | |
key (void *data=0, ham_u16_t size=0, ham_u32_t flags=0) | |
key (const key &other) | |
key & | operator= (const key &other) |
void * | get_data () const |
void | set_data (void *data) |
ham_u16_t | get_size () const |
void | set_size (ham_u16_t size) |
template<class T > | |
void | set (T &t) |
ham_u32_t | get_flags () const |
void | set_flags (ham_u32_t flags) |
ham_key_t * | get_handle () |
int | get_approximate_match_type () |
Private Attributes | |
ham_key_t | m_key |
A key class.
This class wraps structures of type ham_key_t.
Definition at line 89 of file hamsterdb.hpp.
Constructor
Definition at line 92 of file hamsterdb.hpp.
References ham_key_t::data, error(), ham_key_t::flags, HAM_INV_KEYSIZE, m_key, and ham_key_t::size.
|
inline |
Copy constructor.
Definition at line 102 of file hamsterdb.hpp.
|
inline |
Returns 'sign' of Approximate Match
Definition at line 156 of file hamsterdb.hpp.
References ham_key_get_approximate_match_type(), and m_key.
|
inline |
Returns the key data.
Definition at line 114 of file hamsterdb.hpp.
References ham_key_t::data, and m_key.
|
inline |
Returns the flags of the key.
Definition at line 141 of file hamsterdb.hpp.
References ham_key_t::flags, and m_key.
|
inline |
Returns a pointer to the internal ham_key_t structure.
Definition at line 151 of file hamsterdb.hpp.
References m_key.
Referenced by hamsterdb::db::erase(), hamsterdb::db::find(), hamsterdb::cursor::find(), hamsterdb::db::insert(), hamsterdb::cursor::insert(), and hamsterdb::cursor::move().
|
inline |
Returns the size of the key.
Definition at line 124 of file hamsterdb.hpp.
References m_key, and ham_key_t::size.
|
inline |
Template assignment
Definition at line 135 of file hamsterdb.hpp.
References set_data(), and set_size().
|
inline |
Sets the key data.
Definition at line 119 of file hamsterdb.hpp.
References ham_key_t::data, and m_key.
Referenced by run_demo(), and set().
|
inline |
Sets the flags of the key.
Definition at line 146 of file hamsterdb.hpp.
References ham_key_t::flags, and m_key.
|
inline |
Sets the size of the key.
Definition at line 129 of file hamsterdb.hpp.
References m_key, and ham_key_t::size.
Referenced by run_demo(), and set().
|
private |
Definition at line 161 of file hamsterdb.hpp.
Referenced by get_approximate_match_type(), get_data(), get_flags(), get_handle(), get_size(), key(), operator=(), set_data(), set_flags(), and set_size().