33 #ifndef __H__UG__LIB_GRID__TOOLS__GRID_LEVEL__
34 #define __H__UG__LIB_GRID__TOOLS__GRID_LEVEL__
70 else UG_THROW(
"Grid Level Type not in ['top' | 'surf'].");
94 && this->ghosts() == rhs.
ghosts());
107 if(this->
level() == rhs.
level())
return false;
108 if(this->
level() ==
TOP)
return false;
118 if(this->
level() == rhs.
level())
return false;
119 if(this->
level() ==
TOP)
return true;
120 if(rhs.
level() ==
TOP)
return false;
127 return (*
this < rhs || *
this == rhs);
133 return (*
this > rhs || *
this == rhs);
Definition: grid_level.h:42
@ TOP
Definition: grid_level.h:45
bool operator>=(const GridLevel &rhs) const
operator >=
Definition: grid_level.h:131
bool top() const
returns if top level
Definition: grid_level.h:83
bool is_level() const
returns if type is level
Definition: grid_level.h:86
bool operator>(const GridLevel &rhs) const
operator >
Definition: grid_level.h:114
bool operator<(const GridLevel &rhs) const
operator <
Definition: grid_level.h:103
bool operator!=(const GridLevel &rhs) const
operator !=
Definition: grid_level.h:98
ViewType type() const
returns the type
Definition: grid_level.h:77
GridLevel(int level, ViewType type, bool bWithGhosts=false)
constructor
Definition: grid_level.h:55
int m_level
the grid level
Definition: grid_level.h:137
bool is_surface() const
returns if type is surface
Definition: grid_level.h:89
bool m_bWithGhosts
with ghosts (only senseful in parallel)
Definition: grid_level.h:139
GridLevel()
constructor creation surface grid
Definition: grid_level.h:52
int level() const
returns the level
Definition: grid_level.h:74
ViewType m_type
type (i.e. surface or level view)
Definition: grid_level.h:138
bool operator<=(const GridLevel &rhs) const
operator <=
Definition: grid_level.h:125
bool operator==(const GridLevel &rhs) const
operator ==
Definition: grid_level.h:92
bool ghosts() const
returns if ghosts are considered as part of the level
Definition: grid_level.h:80
GridLevel(int level, const std::string &type)
constructor
Definition: grid_level.h:65
GridLevel(int level)
constructor
Definition: grid_level.h:60
ViewType
type of view
Definition: grid_level.h:48
@ SURFACE
Definition: grid_level.h:48
@ LEVEL
Definition: grid_level.h:48
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
#define UG_THROW(msg)
Definition: error.h:57
std::string GridLevelAppendix(const GridLevel &gl, int minfill)
returns appendix for a grid level
Definition: grid_level.cpp:56