PMDK C++ bindings
1.12.1-rc1
This is the C++ bindings documentation for PMDK's libpmemobj.
|
Encapsulates object specific allocator functionality. More...
#include <libpmemobj++/allocator.hpp>
Classes | |
struct | rebind |
Rebind to a different type. More... | |
Public Member Functions | |
object_traits ()=default | |
Defaulted constructor. | |
~object_traits ()=default | |
Defaulted destructor. | |
template<typename U , typename = typename std::enable_if< std::is_convertible<U *, T *>::value>::type> | |
object_traits (object_traits< U > const &) | |
Type converting constructor. | |
void | construct (pointer p, const_reference t) |
Create an object at a specific address. More... | |
template<typename... Args> | |
void | construct (pointer p, Args &&... args) |
Create an object at a specific address. More... | |
void | destroy (pointer p) |
Destroy an object based on a pointer. More... | |
Encapsulates object specific allocator functionality.
Designed to be used with C++ allocators. Can be specialized if necessary.
|
inline |
Create an object at a specific address.
This should be called only within a transaction.
[in] | p | the pointer to where the object will be constructed. |
[in] | args | parameters passed to the object's constructor. |
transaction_scope_error | if called outside of an active transaction. |
rethrows | exception from T constructor. |
|
inline |
Create an object at a specific address.
This should be called only within a transaction.
[in] | p | the pointer to where the object will be constructed. |
[in] | t | the object reference for copy construction. |
transaction_scope_error | if called outside of an active transaction. |
rethrows | exception from T constructor. |
|
inline |
Destroy an object based on a pointer.
This should be called only within a transaction.
[in] | p | the pointer to the object to be destroyed. |