Struct mdbx::buffer_pair_spec
template <typename ALLOCATOR, typename CAPACITY_POLICY>
ClassList > mdbx > buffer_pair_spec
#include <mdbx.h++>
Public Types
| Type | Name |
|---|---|
| typedef typename buffer_type::allocator_traits | allocator_traits |
| typedef typename buffer_type::allocator_type | allocator_type |
| typedef buffer< ALLOCATOR, CAPACITY_POLICY > | buffer_type |
| typedef CAPACITY_POLICY | reservation_policy |
| typedef ::std::pair< buffer_type, buffer_type > | stl_pair |
Public Attributes
| Type | Name |
|---|---|
| buffer_type | key |
| buffer_type | value |
Public Functions
| Type | Name |
|---|---|
| constexpr | buffer_pair_spec () noexcept |
| constexpr | buffer_pair_spec (const allocator_type & alloc) noexcept |
| buffer_pair_spec (const buffer_type & key, const buffer_type & value, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const buffer_type & key, const buffer_type & value, bool make_reference, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const stl_pair & pair, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const stl_pair & pair, bool make_reference, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const slice & key, const slice & value, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const slice & key, const slice & value, bool make_reference, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const pair & pair, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const pair & pair, bool make_reference, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const txn & transaction, const slice & key, const slice & value, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (const txn & transaction, const pair & pair, const allocator_type & alloc=allocator_type()) |
|
| buffer_pair_spec (buffer_type && key, buffer_type && value) |
|
| buffer_pair_spec (const buffer_pair_spec &) = default |
|
| buffer_pair_spec (buffer_pair_spec && pair) |
|
| bool | is_freestanding () noexcept const Checks whether data chunk stored inside the buffers both, otherwise at least one of buffers just refers to data located outside. |
| bool | is_reference () noexcept const Checks whether one of the buffers just refers to data located outside the buffer, rather than stores it. |
| void | make_freestanding () Makes buffers owning the data. |
| operator pair () noexcept const |
|
| buffer_pair_spec & | operator= (const buffer_pair_spec &) = default |
| buffer_pair_spec & | operator= (buffer_pair_spec && src) |
| buffer_pair_spec & | operator= (const pair & src) |
| buffer_pair_spec & | operator= (pair && src) |
| buffer_pair_spec & | operator= (const stl_pair & src) |
| buffer_pair_spec & | operator= (stl_pair && src) |
Public Types Documentation
typedef allocator_traits
using mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::allocator_traits = typename buffer_type::allocator_traits;
typedef allocator_type
using mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::allocator_type = typename buffer_type::allocator_type;
typedef buffer_type
using mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::buffer_type = buffer<ALLOCATOR, CAPACITY_POLICY>;
typedef reservation_policy
using mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::reservation_policy = CAPACITY_POLICY;
typedef stl_pair
using mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::stl_pair = ::std::pair<buffer_type, buffer_type>;
Public Attributes Documentation
variable key
buffer_type mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::key;
variable value
buffer_type mdbx::buffer_pair_spec< ALLOCATOR, CAPACITY_POLICY >::value;
Public Functions Documentation
function buffer_pair_spec [1/15]
constexpr mdbx::buffer_pair_spec::buffer_pair_spec () noexcept
function buffer_pair_spec [2/15]
inline constexpr mdbx::buffer_pair_spec::buffer_pair_spec (
const allocator_type & alloc
) noexcept
function buffer_pair_spec [3/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const buffer_type & key,
const buffer_type & value,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [4/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const buffer_type & key,
const buffer_type & value,
bool make_reference,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [5/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const stl_pair & pair,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [6/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const stl_pair & pair,
bool make_reference,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [7/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const slice & key,
const slice & value,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [8/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const slice & key,
const slice & value,
bool make_reference,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [9/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const pair & pair,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [10/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const pair & pair,
bool make_reference,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [11/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const txn & transaction,
const slice & key,
const slice & value,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [12/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
const txn & transaction,
const pair & pair,
const allocator_type & alloc=allocator_type ()
)
function buffer_pair_spec [13/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
buffer_type && key,
buffer_type && value
)
function buffer_pair_spec [14/15]
mdbx::buffer_pair_spec::buffer_pair_spec (
const buffer_pair_spec &
) = default
function buffer_pair_spec [15/15]
inline mdbx::buffer_pair_spec::buffer_pair_spec (
buffer_pair_spec && pair
)
function is_freestanding
Checks whether data chunk stored inside the buffers both, otherwise at least one of buffers just refers to data located outside.
inline bool mdbx::buffer_pair_spec::is_freestanding () noexcept const
function is_reference
Checks whether one of the buffers just refers to data located outside the buffer, rather than stores it.
inline bool mdbx::buffer_pair_spec::is_reference () noexcept const
function make_freestanding
Makes buffers owning the data.
inline void mdbx::buffer_pair_spec::make_freestanding ()
If buffer refers to an external data, then makes it the owner of clone by allocating storage and copying the data.
function operator pair
inline mdbx::buffer_pair_spec::operator pair () noexcept const
function operator=
buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
const buffer_pair_spec &
) = default
function operator=
inline buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
buffer_pair_spec && src
)
function operator=
inline buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
const pair & src
)
function operator=
inline buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
pair && src
)
function operator=
inline buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
const stl_pair & src
)
function operator=
inline buffer_pair_spec & mdbx::buffer_pair_spec::operator= (
stl_pair && src
)
The documentation for this class was generated from the following file docs/mdbx.h++