hamsterdb API Documentation
ham::record Class Reference
#include <hamsterdb.hpp>
Public Member Functions | |
| record (void *data=0, ham_size_t size=0, ham_u32_t flags=0) | |
| record (const record &other) | |
| record & | operator= (const record &other) |
| void * | get_data () const |
| void | set_data (void *data) |
| ham_size_t | get_size () const |
| void | set_size (ham_size_t size) |
| ham_u32_t | get_flags () const |
| void | set_flags (ham_u32_t flags) |
| ham_record_t * | get_handle () |
Protected Attributes | |
| ham_record_t | m_rec |
Detailed Description
A record class.This class wraps structures of type ham_record_t.
Definition at line 143 of file hamsterdb.hpp.
Constructor & Destructor Documentation
| ham::record::record | ( | void * | data = 0, |
|
| ham_size_t | size = 0, |
|||
| ham_u32_t | flags = 0 | |||
| ) | [inline] |
Constructor
Definition at line 146 of file hamsterdb.hpp.
References ham_record_t::data, ham_record_t::flags, m_rec, and ham_record_t::size.
| ham::record::record | ( | const record & | other | ) | [inline] |
Copy constructor.
Definition at line 154 of file hamsterdb.hpp.
Member Function Documentation
| void* ham::record::get_data | ( | ) | const [inline] |
Returns the record data.
Definition at line 164 of file hamsterdb.hpp.
References ham_record_t::data, and m_rec.
| void ham::record::set_data | ( | void * | data | ) | [inline] |
Sets the record data.
Definition at line 169 of file hamsterdb.hpp.
References ham_record_t::data, and m_rec.
| ham_size_t ham::record::get_size | ( | ) | const [inline] |
Returns the size of the record.
Definition at line 174 of file hamsterdb.hpp.
References m_rec, and ham_record_t::size.
| void ham::record::set_size | ( | ham_size_t | size | ) | [inline] |
Sets the size of the record.
Definition at line 179 of file hamsterdb.hpp.
References m_rec, and ham_record_t::size.
| ham_u32_t ham::record::get_flags | ( | ) | const [inline] |
Returns the flags of the record.
Definition at line 184 of file hamsterdb.hpp.
References ham_record_t::flags, and m_rec.
| void ham::record::set_flags | ( | ham_u32_t | flags | ) | [inline] |
Sets the flags of the record.
Definition at line 189 of file hamsterdb.hpp.
References ham_record_t::flags, and m_rec.
| ham_record_t* ham::record::get_handle | ( | ) | [inline] |
Returns a pointer to the internal ham_record_t structure.
Definition at line 194 of file hamsterdb.hpp.
References m_rec.
Referenced by ham::db::find(), ham::cursor::insert(), ham::db::insert(), ham::cursor::move(), and ham::cursor::overwrite().
Field Documentation
ham_record_t ham::record::m_rec [protected] |
Definition at line 199 of file hamsterdb.hpp.
Referenced by get_data(), get_flags(), get_handle(), get_size(), operator=(), record(), set_data(), set_flags(), and set_size().
The documentation for this class was generated from the following file:
- include/ham/hamsterdb.hpp