libMesh::mapvector< Val, index_t >::veclike_iterator Class Reference

#include <mapvector.h>

Public Member Functions

 veclike_iterator (const typename maptype::iterator &i)
 
 veclike_iterator (const veclike_iterator &i)
 
Val & operator* () const
 
veclike_iteratoroperator++ ()
 
veclike_iterator operator++ (int)
 
bool operator== (const veclike_iterator &other) const
 
bool operator!= (const veclike_iterator &other) const
 

Public Attributes

maptype::iterator it
 

Detailed Description

template<typename Val, typename index_t = unsigned int>
class libMesh::mapvector< Val, index_t >::veclike_iterator

Definition at line 54 of file mapvector.h.

Constructor & Destructor Documentation

◆ veclike_iterator() [1/2]

template<typename Val, typename index_t = unsigned int>
libMesh::mapvector< Val, index_t >::veclike_iterator::veclike_iterator ( const typename maptype::iterator &  i)
inline

Definition at line 57 of file mapvector.h.

58  : it(i) {}

◆ veclike_iterator() [2/2]

template<typename Val, typename index_t = unsigned int>
libMesh::mapvector< Val, index_t >::veclike_iterator::veclike_iterator ( const veclike_iterator i)
inline

Definition at line 60 of file mapvector.h.

61  : it(i.it) {}

Member Function Documentation

◆ operator!=()

template<typename Val, typename index_t = unsigned int>
bool libMesh::mapvector< Val, index_t >::veclike_iterator::operator!= ( const veclike_iterator other) const
inline

Definition at line 77 of file mapvector.h.

References libMesh::mapvector< Val, index_t >::veclike_iterator::it.

77  {
78  return it != other.it;
79  }

◆ operator*()

template<typename Val, typename index_t = unsigned int>
Val& libMesh::mapvector< Val, index_t >::veclike_iterator::operator* ( ) const
inline

Definition at line 63 of file mapvector.h.

References libMesh::mapvector< Val, index_t >::veclike_iterator::it.

63 { return it->second; }

◆ operator++() [1/2]

template<typename Val, typename index_t = unsigned int>
veclike_iterator& libMesh::mapvector< Val, index_t >::veclike_iterator::operator++ ( )
inline

Definition at line 65 of file mapvector.h.

References libMesh::mapvector< Val, index_t >::veclike_iterator::it.

65 { ++it; return *this; }

◆ operator++() [2/2]

template<typename Val, typename index_t = unsigned int>
veclike_iterator libMesh::mapvector< Val, index_t >::veclike_iterator::operator++ ( int  )
inline

Definition at line 67 of file mapvector.h.

67  {
68  veclike_iterator i = *this;
69  ++(*this);
70  return i;
71  }
veclike_iterator(const typename maptype::iterator &i)
Definition: mapvector.h:57

◆ operator==()

template<typename Val, typename index_t = unsigned int>
bool libMesh::mapvector< Val, index_t >::veclike_iterator::operator== ( const veclike_iterator other) const
inline

Definition at line 73 of file mapvector.h.

References libMesh::mapvector< Val, index_t >::veclike_iterator::it.

73  {
74  return it == other.it;
75  }

Member Data Documentation

◆ it


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