ug4
|
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 SurfaceView * | m_pSurfView |
int | m_si |
int | m_topLvl |
int | m_toSI |
SurfaceState | m_validStates |
Friends | |
class | SurfaceView |
Const iterator to traverse the surface of a multi-grid hierarchy.
|
private |
|
private |
ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator | ( | ) |
ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator | ( | const SurfaceViewElementIterator< TElem > & | iter | ) |
References ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_elemIter, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_fromSI, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_gl, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_iterEndSection, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_lvl, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_pSurfView, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_si, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_topLvl, ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_toSI, and ug::SurfaceView::SurfaceViewElementIterator< TElem >::m_validStates.
|
private |
References ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::increment(), ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::increment_section(), ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::is_contained(), ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_elemIter, ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_iterEndSection, ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_lvl, ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_si, ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_topLvl, ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_toSI, ug::SurfaceView::subset_handler(), and UG_ASSERT.
|
inlineprivate |
dereference
Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator*().
|
inlineprivate |
returns if this iterator equals another
References ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::m_elemIter.
Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator!=(), and ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator==().
|
private |
returns next valid iterator
References ug::SurfaceView::is_contained().
Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator(), and ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::operator++().
|
private |
returns begin-iterator of next non-empty section, returns false if not available
Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator().
|
inlineprivate |
returns if valid element, i.e. contained in iterator loop
References ug::SurfaceView::MG_SHADOW, ug::SurfaceView::MG_SURFACE_PURE, ug::Flag< TEnum, TStorageType, defaultValue >::partially_contains(), and ug::SurfaceView::TREAT_TOP_LVL_SHADOWS_AS_SURFACE_PURE.
Referenced by ug::SurfaceView::ConstSurfaceViewElementIterator< TElem >::ConstSurfaceViewElementIterator().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |