NVML C++ bindings  0.1 experimental
This is the C++ bindings documentation for NVML's libpmemobj.
Functions
utils.hpp File Reference

Libpmemobj C++ utils. More...

#include "libpmemobj++/detail/pexceptions.hpp"
#include "libpmemobj++/persistent_ptr.hpp"
#include "libpmemobj/base.h"
Include dependency graph for utils.hpp:

Go to the source code of this file.

Functions

template<typename T >
pool_base nvml::obj::pool_by_vptr (const T *that)
 Retrieve pool handle for the given pointer. More...
 
template<typename T >
pool_base nvml::obj::pool_by_pptr (const persistent_ptr< T > ptr)
 Retrieve pool handle for the given persistent_ptr. More...
 

Detailed Description

Libpmemobj C++ utils.

Function Documentation

template<typename T >
pool_base nvml::obj::pool_by_pptr ( const persistent_ptr< T >  ptr)
inline

Retrieve pool handle for the given persistent_ptr.

Parameters
[in]ptrpointer to an object from a persistent memory pool.
Returns
handle to the pool containing the object.
Exceptions
pool_errorif the given pointer does not belong to an open pool.
template<typename T >
pool_base nvml::obj::pool_by_vptr ( const T *  that)
inline

Retrieve pool handle for the given pointer.

Parameters
[in]thatpointer to an object from a persistent memory pool.
Returns
handle to the pool containing the object.
Exceptions
pool_errorif the given pointer does not belong to an open pool.