Persistent_ptr base (non-template) class.
More...
#include <libpmemobj++/persistent_ptr_base.hpp>
Persistent_ptr base (non-template) class.
Implements some of the functionality of the persistent_ptr class. It defines all applicable conversions from and to a persistent_ptr_base.
It can be used e.g. as a parameter, where persistent_ptr of any template type is required. It is similar to persistent_ptr<void> (it can point to whatever type), but it can be used when you want to have pointer to some unspecified persistent_ptr (with persistent_ptr<void> it can't be done, because: persistent_ptr<T>* does not convert to persistent_ptr<void>*).
◆ persistent_ptr_base()
pmem::obj::persistent_ptr_base::persistent_ptr_base |
( |
PMEMoid |
oid | ) |
|
|
inlinenoexcept |
PMEMoid constructor.
Provided for easy interoperability between C++ and C API's.
- Parameters
-
oid | C-style persistent pointer |
◆ operator=() [1/2]
Assignment operator.
Persistent pointer assignment within a transaction automatically registers this operation so that a rollback is possible.
- Exceptions
-
◆ operator=() [2/2]
Nullptr move assignment operator.
- Exceptions
-
◆ raw()
const PMEMoid& pmem::obj::persistent_ptr_base::raw |
( |
| ) |
const |
|
inlinenoexcept |
Get PMEMoid encapsulated by this object.
For C API compatibility.
- Returns
- const reference to the PMEMoid
◆ raw_ptr()
PMEMoid* pmem::obj::persistent_ptr_base::raw_ptr |
( |
| ) |
|
|
inlinenoexcept |
Get pointer to PMEMoid encapsulated by this object.
For C API compatibility.
- Returns
- pointer to the PMEMoid
◆ swap()
The documentation for this class was generated from the following file: