NeoPZ
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TPZChunkVectorIterator< is_const, T, EXP > Class Template Reference

#include <TPZChunkVector.h>

Public Types

typedef T valuetype
 
typedef std::conditional< is_const, const TPZChunkVector< T, EXP >, TPZChunkVector< T, EXP > >::type vectype
 
typedef std::conditional< is_const, const T &, T & >::type reference
 
typedef std::conditional< is_const, const T *, T * >::type pointer
 

Public Member Functions

 ~TPZChunkVectorIterator ()
 
TPZChunkVectorIterator< is_const, T, EXP > & operator= (const TPZChunkVectorIterator< is_const, T, EXP > &other)=default
 
 operator bool () const
 
bool operator== (const TPZChunkVectorIterator< is_const, T, EXP > &other) const
 
bool operator!= (const TPZChunkVectorIterator< is_const, T, EXP > &other) const
 
TPZChunkVectorIterator< is_const, T, EXP > & operator+= (const ptrdiff_t &movement)
 
TPZChunkVectorIterator< is_const, T, EXP > & operator-= (const ptrdiff_t &movement)
 
TPZChunkVectorIterator< is_const, T, EXP > & operator++ ()
 
TPZChunkVectorIterator< is_const, T, EXP > & operator-- ()
 
TPZChunkVectorIterator< is_const, T, EXP > operator++ (int)
 
TPZChunkVectorIterator< is_const, T, EXP > operator-- (int)
 
TPZChunkVectorIterator< is_const, T, EXP > operator+ (const ptrdiff_t &movement) const
 
TPZChunkVectorIterator< is_const, T, EXP > operator- (const ptrdiff_t &movement) const
 
ptrdiff_t operator- (const TPZChunkVectorIterator< is_const, T, EXP > &other) const
 
reference operator* () const
 
pointer operator-> () const
 
 TPZChunkVectorIterator (const TPZChunkVectorIterator &other)=default
 

Protected Member Functions

 TPZChunkVectorIterator (vectype *chunkVector, typename vectype::size_type cur_index)
 

Protected Attributes

vectypechunkVector
 
vectype::size_type cur_index
 

Friends

class TPZChunkVector< T, EXP >
 

Detailed Description

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
class TPZChunkVectorIterator< is_const, T, EXP >

Definition at line 35 of file TPZChunkVector.h.

Member Typedef Documentation

◆ pointer

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
typedef std::conditional<is_const, const T*, T*>::type TPZChunkVectorIterator< is_const, T, EXP >::pointer

Definition at line 40 of file TPZChunkVector.h.

◆ reference

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
typedef std::conditional<is_const, const T&, T&>::type TPZChunkVectorIterator< is_const, T, EXP >::reference

Definition at line 39 of file TPZChunkVector.h.

◆ valuetype

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
typedef T TPZChunkVectorIterator< is_const, T, EXP >::valuetype

Definition at line 37 of file TPZChunkVector.h.

◆ vectype

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
typedef std::conditional<is_const, const TPZChunkVector<T, EXP>, TPZChunkVector<T, EXP> >::type TPZChunkVectorIterator< is_const, T, EXP >::vectype

Definition at line 38 of file TPZChunkVector.h.

Constructor & Destructor Documentation

◆ ~TPZChunkVectorIterator()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator< is_const, T, EXP >::~TPZChunkVectorIterator ( )
inline

◆ TPZChunkVectorIterator() [1/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator< is_const, T, EXP >::TPZChunkVectorIterator ( const TPZChunkVectorIterator< is_const, T, EXP > &  other)
default

◆ TPZChunkVectorIterator() [2/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator< is_const, T, EXP >::TPZChunkVectorIterator ( vectype chunkVector,
typename vectype::size_type  cur_index 
)
inlineprotected

Definition at line 126 of file TPZChunkVector.h.

Member Function Documentation

◆ operator bool()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator< is_const, T, EXP >::operator bool ( ) const
inline

◆ operator!=()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
bool TPZChunkVectorIterator< is_const, T, EXP >::operator!= ( const TPZChunkVectorIterator< is_const, T, EXP > &  other) const
inline

Definition at line 55 of file TPZChunkVector.h.

◆ operator*()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
reference TPZChunkVectorIterator< is_const, T, EXP >::operator* ( ) const
inline

◆ operator+()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP> TPZChunkVectorIterator< is_const, T, EXP >::operator+ ( const ptrdiff_t &  movement) const
inline

◆ operator++() [1/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP>& TPZChunkVectorIterator< is_const, T, EXP >::operator++ ( )
inline

◆ operator++() [2/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP> TPZChunkVectorIterator< is_const, T, EXP >::operator++ ( int  )
inline

◆ operator+=()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP>& TPZChunkVectorIterator< is_const, T, EXP >::operator+= ( const ptrdiff_t &  movement)
inline

◆ operator-() [1/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP> TPZChunkVectorIterator< is_const, T, EXP >::operator- ( const ptrdiff_t &  movement) const
inline

◆ operator-() [2/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
ptrdiff_t TPZChunkVectorIterator< is_const, T, EXP >::operator- ( const TPZChunkVectorIterator< is_const, T, EXP > &  other) const
inline

◆ operator--() [1/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP>& TPZChunkVectorIterator< is_const, T, EXP >::operator-- ( )
inline

◆ operator--() [2/2]

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP> TPZChunkVectorIterator< is_const, T, EXP >::operator-- ( int  )
inline

◆ operator-=()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP>& TPZChunkVectorIterator< is_const, T, EXP >::operator-= ( const ptrdiff_t &  movement)
inline

◆ operator->()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
pointer TPZChunkVectorIterator< is_const, T, EXP >::operator-> ( ) const
inline

◆ operator=()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
TPZChunkVectorIterator<is_const, T, EXP>& TPZChunkVectorIterator< is_const, T, EXP >::operator= ( const TPZChunkVectorIterator< is_const, T, EXP > &  other)
default

◆ operator==()

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
bool TPZChunkVectorIterator< is_const, T, EXP >::operator== ( const TPZChunkVectorIterator< is_const, T, EXP > &  other) const
inline

Friends And Related Function Documentation

◆ TPZChunkVector< T, EXP >

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
friend class TPZChunkVector< T, EXP >
friend

Definition at line 131 of file TPZChunkVector.h.

Member Data Documentation

◆ chunkVector

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
vectype* TPZChunkVectorIterator< is_const, T, EXP >::chunkVector
protected

◆ cur_index

template<bool is_const, class T, int EXP = DEFAULTCHUNKEXPONENT>
vectype::size_type TPZChunkVectorIterator< is_const, T, EXP >::cur_index
protected

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