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

C++ pmemobj pool. More...

#include <cstddef>
#include <string>
#include <sys/stat.h>
#include <libpmemobj++/detail/common.hpp>
#include <libpmemobj++/detail/ctl.hpp>
#include <libpmemobj++/p.hpp>
#include <libpmemobj++/pexceptions.hpp>
#include <libpmemobj/pool_base.h>

Go to the source code of this file.

Classes

class  pmem::obj::pool_base
 The non-template pool base class. More...
 
class  pmem::obj::pool< T >
 PMEMobj pool class. More...
 

Namespaces

 pmem
 A persistent version of concurrent hash map implementation Ref: https://arxiv.org/abs/1509.02235.
 

Functions

template<typename T >
pmem::obj::ctl_get (const std::string &name)
 Query libpmemobj state at global scope. More...
 
template<typename T >
pmem::obj::ctl_set (const std::string &name, T arg)
 Modify libpmemobj state at global scope. More...
 
template<typename T >
pmem::obj::ctl_exec (const std::string &name, T arg)
 Execute function at global scope. More...
 
template<typename T >
pmem::obj::ctl_get (const std::wstring &name)
 Query libpmemobj state at global scope. More...
 
template<typename T >
pmem::obj::ctl_set (const std::wstring &name, T arg)
 Modify libpmemobj state at global scope. More...
 
template<typename T >
pmem::obj::ctl_exec (const std::wstring &name, T arg)
 Execute function at global scope. More...
 

Detailed Description

C++ pmemobj pool.

Function Documentation

◆ ctl_exec() [1/2]

template<typename T >
T pmem::obj::ctl_exec ( const std::string &  name,
arg 
)

Execute function at global scope.

Parameters
[in]namename of entry point
[in]argextra argument
Returns
copy of arg, possibly modified by query

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3

◆ ctl_exec() [2/2]

template<typename T >
T pmem::obj::ctl_exec ( const std::wstring &  name,
arg 
)

Execute function at global scope.

Parameters
[in]namename of entry point
[in]argextra argument
Returns
copy of arg, possibly modified by query

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3

◆ ctl_get() [1/2]

template<typename T >
T pmem::obj::ctl_get ( const std::string &  name)

Query libpmemobj state at global scope.

Parameters
[in]namename of entry point
Returns
variable representing internal state

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3

◆ ctl_get() [2/2]

template<typename T >
T pmem::obj::ctl_get ( const std::wstring &  name)

Query libpmemobj state at global scope.

Parameters
[in]namename of entry point
Returns
variable representing internal state

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3

◆ ctl_set() [1/2]

template<typename T >
T pmem::obj::ctl_set ( const std::string &  name,
arg 
)

Modify libpmemobj state at global scope.

Parameters
[in]namename of entry point
[in]argextra argument
Returns
copy of arg, possibly modified by query

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3

◆ ctl_set() [2/2]

template<typename T >
T pmem::obj::ctl_set ( const std::wstring &  name,
arg 
)

Modify libpmemobj state at global scope.

Parameters
[in]namename of entry point
[in]argextra argument
Returns
copy of arg, possibly modified by query

For more details, see: http://pmem.io/pmdk/manpages/linux/master/libpmemobj/pmemobj_ctl_get.3