libMesh::PointerToPointerIter< T > Class Template Reference

#include <pointer_to_pointer_iter.h>

Public Member Functions

 PointerToPointerIter (T *const *it)
 
T & operator* () const
 
const PointerToPointerIteroperator++ ()
 
PointerToPointerIter operator++ (int)
 
bool operator== (const PointerToPointerIter &j) const
 
bool operator!= (const PointerToPointerIter &j) const
 

Private Attributes

T *const * _it
 

Detailed Description

template<typename T>
class libMesh::PointerToPointerIter< T >

The PointerToPointerIter templated class is intended to wrap pointer-to-pointer iterators in an interface which works more like a standard iterator, by returning a value rather than a pointer.

Author
Roy H. Stogner

Definition at line 36 of file pointer_to_pointer_iter.h.

Constructor & Destructor Documentation

◆ PointerToPointerIter()

template<typename T>
libMesh::PointerToPointerIter< T >::PointerToPointerIter ( T *const *  it)
inline

Definition at line 39 of file pointer_to_pointer_iter.h.

Member Function Documentation

◆ operator!=()

template<typename T>
bool libMesh::PointerToPointerIter< T >::operator!= ( const PointerToPointerIter< T > &  j) const
inline

Definition at line 61 of file pointer_to_pointer_iter.h.

62  {
63  return !(*this == j);
64  }

◆ operator*()

template<typename T>
T& libMesh::PointerToPointerIter< T >::operator* ( ) const
inline

Definition at line 41 of file pointer_to_pointer_iter.h.

41 { return **_it; }

◆ operator++() [1/2]

template<typename T>
const PointerToPointerIter& libMesh::PointerToPointerIter< T >::operator++ ( )
inline

Definition at line 43 of file pointer_to_pointer_iter.h.

44  {
45  ++_it;
46  return *this;
47  }

◆ operator++() [2/2]

template<typename T>
PointerToPointerIter libMesh::PointerToPointerIter< T >::operator++ ( int  )
inline

Definition at line 49 of file pointer_to_pointer_iter.h.

50  {
51  PointerToPointerIter returnval(*this);
52  ++_it;
53  return returnval;
54  }

◆ operator==()

template<typename T>
bool libMesh::PointerToPointerIter< T >::operator== ( const PointerToPointerIter< T > &  j) const
inline

Definition at line 56 of file pointer_to_pointer_iter.h.

57  {
58  return ( _it == j._it );
59  }

Member Data Documentation

◆ _it


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