PMDK C++ bindings
1.13.0-git23.gf49772ac
This is the C++ bindings documentation for PMDK's libpmemobj.
|
Experimental implementations. More...
Classes | |
class | concurrent_map |
Persistent memory aware implementation of Intel TBB concurrent_map. More... | |
class | basic_dram_inline_string |
This class serves similar purpose to pmem::obj::string, but keeps the data within the same allocation as inline_string itself. More... | |
class | basic_inline_string |
This class serves similar purpose to pmem::obj::string, but keeps the data within the same allocation as inline_string itself. More... | |
struct | total_sizeof |
A helper trait which calculates required memory capacity (in bytes) for a type. More... | |
struct | total_sizeof< basic_inline_string< CharT, Traits > > |
A helper trait which calculates required memory capacity (in bytes) for a type. More... | |
struct | total_sizeof< basic_dram_inline_string< CharT, Traits > > |
A helper trait which calculates required memory capacity (in bytes) for a type. More... | |
class | mpsc_queue |
Persistent memory aware implementation of multi producer single consumer queue. More... | |
class | radix_tree |
Radix tree is an associative, ordered container. More... | |
class | self_relative_ptr |
Persistent self-relative pointer class. More... | |
class | v |
Volatile residing on pmem class. More... | |
Typedefs | |
using | self_relative_ptr_base = pmem::detail::self_relative_ptr_base_impl< std::ptrdiff_t > |
self_relative_ptr base (non-template) class More... | |
Functions | |
template<typename Key , typename Value , typename Comp , typename Allocator > | |
void | swap (concurrent_map< Key, Value, Comp, Allocator > &lhs, concurrent_map< Key, Value, Comp, Allocator > &rhs) |
Non-member swap. | |
template<typename Key , typename Value , typename BytesView , bool MtMode> | |
void | swap (radix_tree< Key, Value, BytesView, MtMode > &lhs, radix_tree< Key, Value, BytesView, MtMode > &rhs) |
Non-member swap. | |
template<typename K , typename V , typename BV , bool MtMode> | |
std::ostream & | operator<< (std::ostream &os, const radix_tree< K, V, BV, MtMode > &tree) |
Prints tree in DOT format. More... | |
template<class T > | |
void | swap (self_relative_ptr< T > &a, self_relative_ptr< T > &b) |
Swaps two self_relative_ptr objects of the same type. More... | |
template<typename T , typename Y > | |
bool | operator== (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Equality operator. | |
template<typename T , typename Y > | |
bool | operator!= (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Inequality operator. | |
template<typename T > | |
bool | operator== (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Equality operator with nullptr. | |
template<typename T > | |
bool | operator== (std::nullptr_t, self_relative_ptr< T > const &lhs) noexcept |
Equality operator with nullptr. | |
template<typename T > | |
bool | operator!= (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Inequality operator with nullptr. | |
template<typename T > | |
bool | operator!= (std::nullptr_t, self_relative_ptr< T > const &lhs) noexcept |
Inequality operator with nullptr. | |
template<typename T , typename Y > | |
bool | operator< (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Less than operator. More... | |
template<typename T , typename Y > | |
bool | operator<= (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Less or equal than operator. More... | |
template<typename T , typename Y > | |
bool | operator> (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Greater than operator. More... | |
template<typename T , typename Y > | |
bool | operator>= (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) noexcept |
Greater or equal than operator. More... | |
template<typename T > | |
bool | operator< (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator< (std::nullptr_t, self_relative_ptr< T > const &rhs) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator<= (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator<= (std::nullptr_t, self_relative_ptr< T > const &rhs) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator> (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator> (std::nullptr_t, self_relative_ptr< T > const &rhs) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator>= (self_relative_ptr< T > const &lhs, std::nullptr_t) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
bool | operator>= (std::nullptr_t, self_relative_ptr< T > const &rhs) noexcept |
Compare a self_relative_ptr with a null pointer. | |
template<typename T > | |
self_relative_ptr< T > | operator+ (self_relative_ptr< T > const &lhs, std::ptrdiff_t s) |
Addition operator for self-relative pointers. | |
template<typename T > | |
self_relative_ptr< T > | operator- (self_relative_ptr< T > const &lhs, std::ptrdiff_t s) |
Subtraction operator for self-relative pointers. | |
template<typename T , typename Y , typename = typename std::enable_if< std::is_same<typename std::remove_cv<T>::type, typename std::remove_cv<Y>::type>::value>> | |
ptrdiff_t | operator- (self_relative_ptr< T > const &lhs, self_relative_ptr< Y > const &rhs) |
Subtraction operator for self-relative pointers of identical type. More... | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, self_relative_ptr< T > const &ptr) |
Ostream operator. | |
template<class T > | |
void | swap (v< T > &a, v< T > &b) |
Swaps two v objects of the same type. More... | |
Experimental implementations.
It contains implementations, which are not yet ready to be used in production. They may be not finished, not fully tested or still in discussion. It is located within pmem::obj namespace.
using pmem::obj::experimental::self_relative_ptr_base = typedef pmem::detail::self_relative_ptr_base_impl<std::ptrdiff_t> |
self_relative_ptr base (non-template) class
Implements some of the functionality of the self_relative_ptr class. It defines all applicable conversions from and to a self_relative_ptr_base.
It can be used e.g. as a parameter, where self_relative_ptr of any template type is required. It is similar to self_relative_ptr<void> (it can point to whatever type), but it can be used when you want to have pointer to some unspecified self_relative_ptr (with self_relative_ptr<void> it can't be done, because: self_relative_ptr<T>* does not convert to self_relative_ptr<void>*).
|
inline |
Subtraction operator for self-relative pointers of identical type.
Calculates the offset difference. Calculating the difference of pointers from objects of different pools is not allowed.
|
inlinenoexcept |
Less than operator.
std::ostream& pmem::obj::experimental::operator<< | ( | std::ostream & | os, |
const radix_tree< K, V, BV, MtMode > & | tree | ||
) |
Prints tree in DOT format.
Used for debugging.
|
inlinenoexcept |
Less or equal than operator.
See less than operator for comparison rules.
|
inlinenoexcept |
Greater than operator.
See less than operator for comparison rules.
|
inlinenoexcept |
Greater or equal than operator.
See less than operator for comparison rules.
|
inline |
Swaps two self_relative_ptr objects of the same type.
Non-member swap function as required by Swappable concept. en.cppreference.com/w/cpp/concept/Swappable