ug4
ug::SurfaceView::ConstSurfaceViewElementIterator< TElem > Class Template Reference

Const iterator to traverse the surface of a multi-grid hierarchy. More...

#include <surface_view.h>

Public Member Functions

 ConstSurfaceViewElementIterator ()
 
 ConstSurfaceViewElementIterator (const SurfaceViewElementIterator< TElem > &iter)
 
bool operator!= (const this_type &iter) const
 
TValue operator* ()
 
this_type operator++ ()
 
this_type operator++ (int unused)
 
bool operator== (const this_type &iter) const
 

Private Types

typedef ConstSurfaceViewElementIterator< TElem > this_type
 
typedef TElem * TValue
 

Private Member Functions

 ConstSurfaceViewElementIterator (bool start, const SurfaceView *surfView, const GridLevel &gl, SurfaceState validStates, int si=-1)
 
TValue dereference () const
 dereference More...
 
bool equal (ConstSurfaceViewElementIterator< TElem > const &other) const
 returns if this iterator equals another More...
 
void increment ()
 returns next valid iterator More...
 
bool increment_section ()
 returns begin-iterator of next non-empty section, returns false if not available More...
 
template<class TGeomObj >
bool is_contained (TGeomObj *obj) const
 returns if valid element, i.e. contained in iterator loop More...
 

Private Attributes

geometry_traits< TElem >::const_iterator m_elemIter
 
int m_fromSI
 
GridLevel m_gl
 
geometry_traits< TElem >::const_iterator m_iterEndSection
 
int m_lvl
 
const SurfaceViewm_pSurfView
 
int m_si
 
int m_topLvl
 
int m_toSI
 
SurfaceState m_validStates
 

Friends

class SurfaceView
 

Detailed Description

template<class TElem>
class ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >

Const iterator to traverse the surface of a multi-grid hierarchy.

Member Typedef Documentation

◆ this_type

template<class TElem >
typedef ConstSurfaceViewElementIterator<TElem> ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::this_type
private

◆ TValue

template<class TElem >
typedef TElem* ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::TValue
private

Constructor & Destructor Documentation

◆ ConstSurfaceViewElementIterator() [1/3]

◆ ConstSurfaceViewElementIterator() [2/3]

◆ ConstSurfaceViewElementIterator() [3/3]

Member Function Documentation

◆ dereference()

◆ equal()

◆ increment()

◆ increment_section()

template<class TElem >
bool ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::increment_section ( )
private

returns begin-iterator of next non-empty section, returns false if not available

Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator().

◆ is_contained()

template<class TElem >
template<class TGeomObj >
bool ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::is_contained ( TGeomObj *  obj) const
inlineprivate

◆ operator!=()

template<class TElem >
bool ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator!= ( const this_type iter) const
inline

◆ operator*()

◆ operator++() [1/2]

◆ operator++() [2/2]

◆ operator==()

template<class TElem >
bool ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator== ( const this_type iter) const
inline

Friends And Related Function Documentation

◆ SurfaceView

template<class TElem >
friend class SurfaceView
friend

Member Data Documentation

◆ m_elemIter

◆ m_fromSI

template<class TElem >
int ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_fromSI
private

◆ m_gl

template<class TElem >
GridLevel ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_gl
private

◆ m_iterEndSection

◆ m_lvl

◆ m_pSurfView

template<class TElem >
const SurfaceView* ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_pSurfView
private

◆ m_si

◆ m_topLvl

◆ m_toSI

◆ m_validStates

template<class TElem >
SurfaceState ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_validStates
private

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