|
PMDK C++ bindings
1.10.1
This is the C++ bindings documentation for PMDK's libpmemobj.
|
Default non-const iterator which adds element to a transaction on every access. More...
#include <libpmemobj++/container/detail/contiguous_iterator.hpp>
Public Member Functions | |
| basic_contiguous_iterator (pointer ptr=nullptr) | |
| Constructor taking pointer and snapshotting function as arguments. | |
| operator const T * () const | |
| Conversion operator to const T*. | |
| reference | operator* () const |
| Dereference operator which adds dereferenced element to a transaction. | |
| pointer | operator-> () const |
| Arrow operator which adds underlying element to a transactions. | |
| reference | operator[] (std::ptrdiff_t n) |
| Element access operator. More... | |
Public Member Functions inherited from pmem::detail::contiguous_iterator< basic_contiguous_iterator< T >, T &, T * > | |
| constexpr | contiguous_iterator (T * begin) |
| Constructor taking a pointer. | |
| T & | operator* () const |
| Dereference operator. | |
| T * | operator-> () const |
| Arrow operator. | |
| basic_contiguous_iterator< T > & | operator++ () |
| Prefix increment operator. | |
| basic_contiguous_iterator< T > | operator++ (int) |
| Postfix increment operator. | |
| basic_contiguous_iterator< T > & | operator-- () |
| Prefix decrement operator. | |
| basic_contiguous_iterator< T > | operator-- (int) |
| Postfix decrement operator. | |
| basic_contiguous_iterator< T > & | operator+= (std::ptrdiff_t n) |
| Addition assignment operator. | |
| basic_contiguous_iterator< T > & | operator-= (std::ptrdiff_t n) |
| Subtraction assignment operator. | |
| basic_contiguous_iterator< T > | operator+ (std::ptrdiff_t n) const |
| Addition operator. | |
| basic_contiguous_iterator< T > | operator- (std::ptrdiff_t n) const |
| Subtraction operator overload for integral type. | |
| T & | operator[] (std::ptrdiff_t n) |
| Element access operator. | |
Friends | |
| void | swap (basic_contiguous_iterator &lhs, basic_contiguous_iterator &rhs) |
| Non-member swap function. | |
Additional Inherited Members | |
Protected Member Functions inherited from pmem::detail::contiguous_iterator< basic_contiguous_iterator< T >, T &, T * > | |
| void | change_by (std::ptrdiff_t n) |
| Function for changing underlying pointer. More... | |
Default non-const iterator which adds element to a transaction on every access.
|
inline |
Element access operator.
Adds range containing specified element to a transaction.