Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

prevector< N, T, Size, Diff >::iterator Class Reference

#include <prevector.h>

Public Types

typedef Diff difference_type
 
typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 
typedef std::random_access_iterator_tag iterator_category
 

Public Member Functions

 iterator (T *ptr_)
 
T & operator* () const
 
T * operator-> () const
 
T & operator[] (size_type pos)
 
const T & operator[] (size_type pos) const
 
iteratoroperator++ ()
 
iteratoroperator-- ()
 
iterator operator++ (int)
 
iterator operator-- (int)
 
difference_type friend operator- (iterator a, iterator b)
 
iterator operator+ (size_type n)
 
iteratoroperator+= (size_type n)
 
iterator operator- (size_type n)
 
iteratoroperator-= (size_type n)
 
bool operator== (iterator x) const
 
bool operator!= (iterator x) const
 
bool operator>= (iterator x) const
 
bool operator<= (iterator x) const
 
bool operator> (iterator x) const
 
bool operator< (iterator x) const
 

Private Attributes

T * ptr
 

Detailed Description

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
class prevector< N, T, Size, Diff >::iterator

Definition at line 49 of file prevector.h.

Member Typedef Documentation

◆ difference_type

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
typedef Diff prevector< N, T, Size, Diff >::iterator::difference_type

Definition at line 52 of file prevector.h.

◆ iterator_category

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
typedef std::random_access_iterator_tag prevector< N, T, Size, Diff >::iterator::iterator_category

Definition at line 56 of file prevector.h.

◆ pointer

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
typedef T* prevector< N, T, Size, Diff >::iterator::pointer

Definition at line 54 of file prevector.h.

◆ reference

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
typedef T& prevector< N, T, Size, Diff >::iterator::reference

Definition at line 55 of file prevector.h.

◆ value_type

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
typedef T prevector< N, T, Size, Diff >::iterator::value_type

Definition at line 53 of file prevector.h.

Constructor & Destructor Documentation

◆ iterator()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
prevector< N, T, Size, Diff >::iterator::iterator ( T *  ptr_)
inline

Member Function Documentation

◆ operator!=()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator!= ( iterator  x) const
inline

Definition at line 72 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator*()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
T& prevector< N, T, Size, Diff >::iterator::operator* ( ) const
inline

Definition at line 58 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator+()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator prevector< N, T, Size, Diff >::iterator::operator+ ( size_type  n)
inline

◆ operator++() [1/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator& prevector< N, T, Size, Diff >::iterator::operator++ ( )
inline

Definition at line 62 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator++() [2/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator prevector< N, T, Size, Diff >::iterator::operator++ ( int  )
inline

Definition at line 64 of file prevector.h.

References immer::copy().

◆ operator+=()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator& prevector< N, T, Size, Diff >::iterator::operator+= ( size_type  n)
inline

Definition at line 68 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator-() [1/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
difference_type friend prevector< N, T, Size, Diff >::iterator::operator- ( iterator  a,
iterator  b 
)
inline

Definition at line 66 of file prevector.h.

◆ operator-() [2/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator prevector< N, T, Size, Diff >::iterator::operator- ( size_type  n)
inline

◆ operator--() [1/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator& prevector< N, T, Size, Diff >::iterator::operator-- ( )
inline

Definition at line 63 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator--() [2/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator prevector< N, T, Size, Diff >::iterator::operator-- ( int  )
inline

Definition at line 65 of file prevector.h.

References immer::copy().

◆ operator-=()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
iterator& prevector< N, T, Size, Diff >::iterator::operator-= ( size_type  n)
inline

Definition at line 70 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator->()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
T* prevector< N, T, Size, Diff >::iterator::operator-> ( ) const
inline

Definition at line 59 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator<()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator< ( iterator  x) const
inline

Definition at line 76 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator<=()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator<= ( iterator  x) const
inline

Definition at line 74 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator==()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator== ( iterator  x) const
inline

Definition at line 71 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator>()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator> ( iterator  x) const
inline

Definition at line 75 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator>=()

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
bool prevector< N, T, Size, Diff >::iterator::operator>= ( iterator  x) const
inline

Definition at line 73 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator[]() [1/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
T& prevector< N, T, Size, Diff >::iterator::operator[] ( size_type  pos)
inline

Definition at line 60 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

◆ operator[]() [2/2]

template<unsigned int N, typename T, typename Size = uint32_t, typename Diff = int32_t>
const T& prevector< N, T, Size, Diff >::iterator::operator[] ( size_type  pos) const
inline

Definition at line 61 of file prevector.h.

References prevector< N, T, Size, Diff >::iterator::ptr.

Member Data Documentation

◆ ptr


The documentation for this class was generated from the following file:
Released under the MIT license