ug4
ug::GridLevel Class Reference

#include <grid_level.h>

Public Types

enum  { TOP = -1 }
 indicates that always top level should be used More...
 
enum  ViewType { LEVEL = 0 , SURFACE = 1 }
 type of view More...
 

Public Member Functions

bool ghosts () const
 returns if ghosts are considered as part of the level More...
 
 GridLevel ()
 constructor creation surface grid More...
 
 GridLevel (int level)
 constructor More...
 
 GridLevel (int level, const std::string &type)
 constructor More...
 
 GridLevel (int level, ViewType type, bool bWithGhosts=false)
 constructor More...
 
bool is_level () const
 returns if type is level More...
 
bool is_surface () const
 returns if type is surface More...
 
int level () const
 returns the level More...
 
bool operator!= (const GridLevel &rhs) const
 operator != More...
 
bool operator< (const GridLevel &rhs) const
 operator < More...
 
bool operator<= (const GridLevel &rhs) const
 operator <= More...
 
bool operator== (const GridLevel &rhs) const
 operator == More...
 
bool operator> (const GridLevel &rhs) const
 operator > More...
 
bool operator>= (const GridLevel &rhs) const
 operator >= More...
 
bool top () const
 returns if top level More...
 
ViewType type () const
 returns the type More...
 

Protected Attributes

bool m_bWithGhosts
 with ghosts (only senseful in parallel) More...
 
int m_level
 the grid level More...
 
ViewType m_type
 type (i.e. surface or level view) More...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

indicates that always top level should be used

Enumerator
TOP 

◆ ViewType

type of view

Enumerator
LEVEL 
SURFACE 

Constructor & Destructor Documentation

◆ GridLevel() [1/4]

ug::GridLevel::GridLevel ( )
inline

constructor creation surface grid

◆ GridLevel() [2/4]

ug::GridLevel::GridLevel ( int  level,
ViewType  type,
bool  bWithGhosts = false 
)
inline

constructor

◆ GridLevel() [3/4]

ug::GridLevel::GridLevel ( int  level)
inline

constructor

◆ GridLevel() [4/4]

ug::GridLevel::GridLevel ( int  level,
const std::string &  type 
)
inline

constructor

References LEVEL, m_type, SURFACE, type(), and UG_THROW.

Member Function Documentation

◆ ghosts()

bool ug::GridLevel::ghosts ( ) const
inline

◆ is_level()

bool ug::GridLevel::is_level ( ) const
inline

◆ is_surface()

◆ level()

◆ operator!=()

bool ug::GridLevel::operator!= ( const GridLevel rhs) const
inline

operator !=

References operator==().

◆ operator<()

bool ug::GridLevel::operator< ( const GridLevel rhs) const
inline

operator <

References ghosts(), level(), TOP, and type().

◆ operator<=()

bool ug::GridLevel::operator<= ( const GridLevel rhs) const
inline

operator <=

◆ operator==()

bool ug::GridLevel::operator== ( const GridLevel rhs) const
inline

operator ==

References ghosts(), level(), and type().

Referenced by operator!=().

◆ operator>()

bool ug::GridLevel::operator> ( const GridLevel rhs) const
inline

operator >

References ghosts(), level(), TOP, and type().

◆ operator>=()

bool ug::GridLevel::operator>= ( const GridLevel rhs) const
inline

operator >=

◆ top()

◆ type()

Member Data Documentation

◆ m_bWithGhosts

bool ug::GridLevel::m_bWithGhosts
protected

with ghosts (only senseful in parallel)

Referenced by ghosts().

◆ m_level

int ug::GridLevel::m_level
protected

the grid level

Referenced by level().

◆ m_type

ViewType ug::GridLevel::m_type
protected

type (i.e. surface or level view)

Referenced by GridLevel(), and type().


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