Wrapper class for MDB_val structures.
More...
#include <lmdb++.h>
|
| | val () noexcept=default |
| | Default constructor.
|
| | val (const std::string &data) noexcept |
| | Constructor.
|
| | val (const char *const data) noexcept |
| | Constructor.
|
| | val (const void *const data, const std::size_t size) noexcept |
| | Constructor.
|
| | val (val &&other) noexcept=default |
| | Move constructor.
|
| val & | operator= (val &&other) noexcept=default |
| | Move assignment operator.
|
| | ~val () noexcept=default |
| | Destructor.
|
| | operator MDB_val * () noexcept |
| | Returns an MDB_val* pointer.
|
| | operator const MDB_val * () const noexcept |
| | Returns an MDB_val* pointer.
|
| bool | empty () const noexcept |
| | Determines whether this value is empty.
|
| std::size_t | size () const noexcept |
| | Returns the size of the data.
|
| template<typename T> |
| T * | data () noexcept |
| | Returns a pointer to the data.
|
| template<typename T> |
| const T * | data () const noexcept |
| | Returns a pointer to the data.
|
| char * | data () noexcept |
| | Returns a pointer to the data.
|
| const char * | data () const noexcept |
| | Returns a pointer to the data.
|
| template<typename T> |
| val & | assign (const T *const data, const std::size_t size) noexcept |
| | Assigns the value.
|
| val & | assign (const char *const data) noexcept |
| | Assigns the value.
|
| val & | assign (const std::string &data) noexcept |
| | Assigns the value.
|
Wrapper class for MDB_val structures.
- Note
- Instances of this class are movable and copyable both.
- See also
- http://symas.com/mdb/doc/group__mdb.html#structMDB__val
◆ val() [1/5]
◆ val() [2/5]
| lmdb::val::val |
( |
const std::string & | data | ) |
|
|
inlinenoexcept |
◆ val() [3/5]
| lmdb::val::val |
( |
const char *const | data | ) |
|
|
inlinenoexcept |
◆ val() [4/5]
| lmdb::val::val |
( |
const void *const | data, |
|
|
const std::size_t | size ) |
|
inlinenoexcept |
◆ val() [5/5]
| lmdb::val::val |
( |
val && | other | ) |
|
|
defaultnoexcept |
◆ ~val()
◆ assign() [1/3]
| val & lmdb::val::assign |
( |
const char *const | data | ) |
|
|
inlinenoexcept |
◆ assign() [2/3]
| val & lmdb::val::assign |
( |
const std::string & | data | ) |
|
|
inlinenoexcept |
◆ assign() [3/3]
template<typename T>
| val & lmdb::val::assign |
( |
const T *const | data, |
|
|
const std::size_t | size ) |
|
inlinenoexcept |
◆ data() [1/4]
| const char * lmdb::val::data |
( |
| ) |
const |
|
inlinenoexcept |
Returns a pointer to the data.
◆ data() [2/4]
template<typename T>
| const T * lmdb::val::data |
( |
| ) |
const |
|
inlinenoexcept |
Returns a pointer to the data.
◆ data() [3/4]
| char * lmdb::val::data |
( |
| ) |
|
|
inlinenoexcept |
Returns a pointer to the data.
◆ data() [4/4]
Returns a pointer to the data.
◆ empty()
| bool lmdb::val::empty |
( |
| ) |
const |
|
inlinenoexcept |
Determines whether this value is empty.
◆ operator const MDB_val *()
| lmdb::val::operator const MDB_val * |
( |
| ) |
const |
|
inlinenoexcept |
Returns an MDB_val* pointer.
◆ operator MDB_val *()
| lmdb::val::operator MDB_val * |
( |
| ) |
|
|
inlinenoexcept |
Returns an MDB_val* pointer.
◆ operator=()
| val & lmdb::val::operator= |
( |
val && | other | ) |
|
|
defaultnoexcept |
Move assignment operator.
◆ size()
| std::size_t lmdb::val::size |
( |
| ) |
const |
|
inlinenoexcept |
Returns the size of the data.
◆ _val
The documentation for this class was generated from the following file: