ug4
ug::IsInSubGrid Class Reference

Callbacks that return true if an element is contained in a sub-grid. More...

#include <sub_grid.h>

Public Member Functions

 IsInSubGrid (const ISubGrid &subGrid)
 
bool operator() (Edge *e)
 
bool operator() (Face *f)
 
bool operator() (Vertex *v)
 
bool operator() (Volume *v)
 

Private Member Functions

template<class TElem >
bool callback (TElem *e)
 

Private Attributes

const ISubGridm_subGrid
 

Detailed Description

Callbacks that return true if an element is contained in a sub-grid.

Please make sure that the associated sub-grid exists until the callback-class was destroyed.

Constructor & Destructor Documentation

◆ IsInSubGrid()

ug::IsInSubGrid::IsInSubGrid ( const ISubGrid subGrid)
inline

Member Function Documentation

◆ callback()

template<class TElem >
bool ug::IsInSubGrid::callback ( TElem *  e)
inlineprivate

References ug::ISubGrid::is_contained(), and m_subGrid.

Referenced by operator()().

◆ operator()() [1/4]

bool ug::IsInSubGrid::operator() ( Edge e)
inline

References callback().

◆ operator()() [2/4]

bool ug::IsInSubGrid::operator() ( Face f)
inline

References callback().

◆ operator()() [3/4]

bool ug::IsInSubGrid::operator() ( Vertex v)
inline

References callback().

◆ operator()() [4/4]

bool ug::IsInSubGrid::operator() ( Volume v)
inline

References callback().

Member Data Documentation

◆ m_subGrid

const ISubGrid& ug::IsInSubGrid::m_subGrid
private

Referenced by callback().


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