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

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

#include <surface_view.h>

Public Member Functions

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

Private Types

typedef SurfaceViewElementIterator< TElem > this_type
 
typedef TElem * TValue
 

Private Member Functions

TValue dereference () const
 dereference More...
 
bool equal (SurfaceViewElementIterator< 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...
 
 SurfaceViewElementIterator (bool start, SurfaceView *surfView, const GridLevel &gl, SurfaceState validStates, int si=-1)
 

Private Attributes

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

Friends

class ConstSurfaceViewElementIterator< TElem >
 
class SurfaceView
 

Detailed Description

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

Iterator to traverse the surface of a multi-grid hierarchy.

Member Typedef Documentation

◆ this_type

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

◆ TValue

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

Constructor & Destructor Documentation

◆ SurfaceViewElementIterator() [1/2]

◆ SurfaceViewElementIterator() [2/2]

Member Function Documentation

◆ dereference()

template<class TElem >
SurfaceView::SurfaceViewElementIterator< TElem >::TValue ug::SurfaceView::SurfaceViewElementIterator< TElem >::dereference ( ) const
inlineprivate

◆ equal()

◆ increment()

◆ increment_section()

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

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

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

◆ is_contained()

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

◆ operator!=()

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

◆ operator*()

◆ operator++() [1/2]

◆ operator++() [2/2]

template<class TElem >
this_type ug::SurfaceView::SurfaceViewElementIterator< TElem >::operator++ ( int  unused)
inline

◆ operator==()

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

Friends And Related Function Documentation

◆ ConstSurfaceViewElementIterator< TElem >

template<class TElem >
friend class ConstSurfaceViewElementIterator< TElem >
friend

◆ SurfaceView

template<class TElem >
friend class SurfaceView
friend

Member Data Documentation

◆ m_elemIter

◆ m_fromSI

◆ m_gl

◆ m_iterEndSection

◆ m_lvl

◆ m_pSurfView

◆ m_si

◆ m_topLvl

◆ m_toSI

◆ m_validStates


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