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

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

#include <libpmemobj++/container/detail/contiguous_iterator.hpp>

Inheritance diagram for pmem::detail::basic_contiguous_iterator< T >:
pmem::detail::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 * () 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...
 

Detailed Description

template<typename T>
struct pmem::detail::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::detail::basic_contiguous_iterator< T >::operator[] ( std::ptrdiff_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: