ug4
ug::SubGrid< TCallbackCls > Class Template Reference

specializes ISubGrid for general callback classes. More...

#include <sub_grid.h>

+ Inheritance diagram for ug::SubGrid< TCallbackCls >:

Public Member Functions

virtual const GridObjectCollectiongoc () const
 
virtual bool is_contained (Edge *e) const
 
virtual bool is_contained (Face *e) const
 
virtual bool is_contained (Vertex *e) const
 
virtual bool is_contained (Volume *e) const
 
 SubGrid (GridObjectCollection goc, const TCallbackCls &cb)
 
- Public Member Functions inherited from ug::ISubGrid
virtual ~ISubGrid ()
 

Private Attributes

TCallbackCls m_callbacks
 
GridObjectCollection m_goc
 

Detailed Description

template<class TCallbackCls>
class ug::SubGrid< TCallbackCls >

specializes ISubGrid for general callback classes.

Parameters
TCallbackClsA class that features the following methods
  • bool operator() (Vertex* v) const;
  • bool operator() (Edge* e) const;
  • bool operator() (Face* f) const;
  • bool operator() (Volume* v) const;

Constructor & Destructor Documentation

◆ SubGrid()

template<class TCallbackCls >
ug::SubGrid< TCallbackCls >::SubGrid ( GridObjectCollection  goc,
const TCallbackCls &  cb 
)
inline

Member Function Documentation

◆ goc()

template<class TCallbackCls >
virtual const GridObjectCollection& ug::SubGrid< TCallbackCls >::goc ( ) const
inlinevirtual

◆ is_contained() [1/4]

template<class TCallbackCls >
virtual bool ug::SubGrid< TCallbackCls >::is_contained ( Edge e) const
inlinevirtual

◆ is_contained() [2/4]

template<class TCallbackCls >
virtual bool ug::SubGrid< TCallbackCls >::is_contained ( Face e) const
inlinevirtual

◆ is_contained() [3/4]

template<class TCallbackCls >
virtual bool ug::SubGrid< TCallbackCls >::is_contained ( Vertex e) const
inlinevirtual

◆ is_contained() [4/4]

template<class TCallbackCls >
virtual bool ug::SubGrid< TCallbackCls >::is_contained ( Volume e) const
inlinevirtual

Member Data Documentation

◆ m_callbacks

template<class TCallbackCls >
TCallbackCls ug::SubGrid< TCallbackCls >::m_callbacks
private

◆ m_goc

template<class TCallbackCls >
GridObjectCollection ug::SubGrid< TCallbackCls >::m_goc
private

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