libMesh
Public Member Functions | Private Attributes | Friends | List of all members
libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter > Class Template Reference

#include <chunked_mapvector.h>

Public Member Functions

 veclike_iterator_base (const MapIter &i, const iter_t idx)
 
 veclike_iterator_base (const veclike_iterator_base &i)=default
 
template<typename T >
 veclike_iterator_base (const veclike_iterator_base< T > &i)
 
veclike_iterator_baseoperator++ ()
 
veclike_iterator_base operator++ (int)
 
bool operator== (const veclike_iterator_base &other) const
 
bool operator!= (const veclike_iterator_base &other) const
 
index_t index () const
 

Private Attributes

MapIter it
 
iter_t array_index
 

Friends

class chunked_mapvector
 

Detailed Description

template<typename Val, typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
class libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >

Definition at line 51 of file chunked_mapvector.h.

Constructor & Destructor Documentation

◆ veclike_iterator_base() [1/3]

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::veclike_iterator_base ( const MapIter &  i,
const iter_t  idx 
)
inline

Definition at line 54 of file chunked_mapvector.h.

56  : it(i), array_index(idx) {}
unsigned int idx(const ElemType type, const unsigned int nx, const unsigned int i, const unsigned int j)
A useful inline function which replaces the macros used previously.

◆ veclike_iterator_base() [2/3]

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::veclike_iterator_base ( const veclike_iterator_base< MapIter > &  i)
default

◆ veclike_iterator_base() [3/3]

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
template<typename T >
libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::veclike_iterator_base ( const veclike_iterator_base< T > &  i)
inline

Member Function Documentation

◆ index()

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
index_t libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::index ( ) const
inline

◆ operator!=()

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
bool libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::operator!= ( const veclike_iterator_base< MapIter > &  other) const
inline

Definition at line 87 of file chunked_mapvector.h.

88  {
89  return (it != other.it || array_index != other.array_index);
90  }

◆ operator++() [1/2]

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
veclike_iterator_base& libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::operator++ ( )
inline

Definition at line 64 of file chunked_mapvector.h.

65  {
66  ++array_index;
67  if (array_index >= N)
68  {
69  array_index = 0;
70  ++it;
71  }
72  return *this;
73  }

◆ operator++() [2/2]

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
veclike_iterator_base libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::operator++ ( int  )
inline

Definition at line 75 of file chunked_mapvector.h.

76  {
77  veclike_iterator i = *this;
78  ++(*this);
79  return i;
80  }

◆ operator==()

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
bool libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::operator== ( const veclike_iterator_base< MapIter > &  other) const
inline

Definition at line 82 of file chunked_mapvector.h.

83  {
84  return (it == other.it && array_index == other.array_index);
85  }

Friends And Related Function Documentation

◆ chunked_mapvector

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
friend class chunked_mapvector
friend

Definition at line 95 of file chunked_mapvector.h.

Member Data Documentation

◆ array_index

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
iter_t libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::array_index
private

◆ it

template<typename Val , typename index_t = unsigned int, unsigned int N = 16>
template<typename MapIter>
MapIter libMesh::chunked_mapvector< Val, index_t, N >::veclike_iterator_base< MapIter >::it
private

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