PMDK C++ bindings  1.2.0
This is the C++ bindings documentation for PMDK's libpmemobj.
Public Member Functions | Friends | List of all members
pmem::obj::experimental::basic_contiguous_iterator< T > Struct Template Reference

Default non-const iterator which adds element to a transaction on every access. More...

#include <libpmemobj++/experimental/contiguous_iterator.hpp>

Inheritance diagram for pmem::obj::experimental::basic_contiguous_iterator< T >:
pmem::obj::experimental::contiguous_iterator< basic_contiguous_iterator< T >, T &, T *>

Public Member Functions

 basic_contiguous_iterator (pointer ptr=nullptr)
 Constructor taking pointer and snapshotting function as arguments.
 
 operator const T * ()
 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::size_t n)
 Element access operator. More...
 
- Public Member Functions inherited from pmem::obj::experimental::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::size_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::obj::experimental::contiguous_iterator< basic_contiguous_iterator< T >, T &, T *>
void change_by (std::ptrdiff_t n)
 Function for changing underlying pointer. More...
 

Detailed Description

template<typename T>
struct pmem::obj::experimental::basic_contiguous_iterator< T >

Default non-const iterator which adds element to a transaction on every access.

Member Function Documentation

◆ operator[]()

template<typename T >
reference pmem::obj::experimental::basic_contiguous_iterator< T >::operator[] ( std::size_t  n)
inline

Element access operator.

Adds range containing specified element to a transaction.


The documentation for this struct was generated from the following file: