libMesh
Public Member Functions | Private Attributes | List of all members
libMesh::PointerToPointerIter< T > Class Template Reference

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. More...

#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

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

Definition at line 39 of file pointer_to_pointer_iter.h.

Member Function Documentation

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

Definition at line 61 of file pointer_to_pointer_iter.h.

62  {
63  return !(*this == j);
64  }
template<typename T>
T& libMesh::PointerToPointerIter< T >::operator* ( ) const

Definition at line 41 of file pointer_to_pointer_iter.h.

41 { return **_it; }
template<typename T>
const PointerToPointerIter& libMesh::PointerToPointerIter< T >::operator++ ( )

Definition at line 43 of file pointer_to_pointer_iter.h.

44  {
45  ++_it;
46  return *this;
47  }
template<typename T>
PointerToPointerIter libMesh::PointerToPointerIter< T >::operator++ ( int  )

Definition at line 49 of file pointer_to_pointer_iter.h.

50  {
51  PointerToPointerIter returnval(*this);
52  ++_it;
53  return returnval;
54  }
template<typename T>
bool libMesh::PointerToPointerIter< T >::operator== ( const PointerToPointerIter< T > &  j) const

Definition at line 56 of file pointer_to_pointer_iter.h.

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

Member Data Documentation

template<typename T>
T* const* libMesh::PointerToPointerIter< T >::_it
private

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