PMDK C++ bindings  1.9
This is the C++ bindings documentation for PMDK's libpmemobj.
Classes | Namespaces | Functions
allocator.hpp File Reference

Persistent memory aware allocator. More...

#include <libpmemobj++/detail/common.hpp>
#include <libpmemobj++/detail/life.hpp>
#include <libpmemobj++/persistent_ptr.hpp>
#include <libpmemobj++/pexceptions.hpp>
#include <libpmemobj++/pext.hpp>
#include <libpmemobj/tx_base.h>

Go to the source code of this file.

Classes

class  pmem::obj::object_traits< T >
 Encapsulates object specific allocator functionality. More...
 
struct  pmem::obj::object_traits< T >::rebind< U >
 Rebind to a different type. More...
 
class  pmem::obj::object_traits< void >
 Object traits specialization for the void type. More...
 
struct  pmem::obj::object_traits< void >::rebind
 Rebind to a different type. More...
 
class  pmem::obj::standard_alloc_policy< T >
 The allocation policy template for a given type. More...
 
struct  pmem::obj::standard_alloc_policy< T >::rebind< U >
 Rebind to a different type. More...
 
class  pmem::obj::standard_alloc_policy< void >
 Void specialization of the standard allocation policy. More...
 
struct  pmem::obj::standard_alloc_policy< void >::rebind
 Rebind to a different type. More...
 
class  pmem::obj::allocator< T, Policy, Traits >
 (EXPERIMENTAL) Encapsulates the information about the persistent memory allocation model using PMDK's libpmemobj. More...
 
struct  pmem::obj::allocator< T, Policy, Traits >::rebind< U >
 Rebind to a different type. More...
 

Namespaces

 pmem
 Persistent memory namespace.
 
 pmem::obj
 Main libpmemobj namespace.
 

Functions

template<typename T , typename T2 >
bool pmem::obj::operator== (standard_alloc_policy< T > const &, standard_alloc_policy< T2 > const &)
 Determines if memory from another allocator can be deallocated from this one. More...
 
template<typename T , typename OtherAllocator >
bool pmem::obj::operator== (standard_alloc_policy< T > const &, OtherAllocator const &)
 Determines if memory from another allocator can be deallocated from this one. More...
 
template<typename T , typename P , typename Tr , typename T2 , typename P2 , typename Tr2 >
bool pmem::obj::operator== (const allocator< T, P, Tr > &lhs, const allocator< T2, P2, Tr2 > &rhs)
 Determines if memory from another allocator can be deallocated from this one. More...
 
template<typename T , typename P , typename Tr , typename OtherAllocator >
bool pmem::obj::operator!= (const allocator< T, P, Tr > &lhs, const OtherAllocator &rhs)
 Determines if memory from another allocator can be deallocated from this one. More...
 

Detailed Description

Persistent memory aware allocator.

(EXPERIMENTAL)