BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bempp::ConcreteGridView< DuneGridView > Class Template Reference

Wrapper of a Dune grid view of type DuneGridView. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/grid/concrete_grid_view.hpp>

Inheritance diagram for Bempp::ConcreteGridView< DuneGridView >:
Bempp::GridView

Public Member Functions

 ConcreteGridView (const DuneGridView &dune_gv, const DomainIndex &domain_index)
 Constructor.
 
const DuneGridView & duneGridView () const
 Read-only access to the underlying Dune grid view object.
 
DuneGridView & duneGridView ()
 Access to the underlying Dune grid view object. Use at your own risk!
 
virtual int dimWorld () const
 Dimension of the space containing the grid.
 
virtual int dim () const
 Dimension of the grid.
 
virtual const IndexSetindexSet () const
 The index set.
 
virtual const MapperelementMapper () const
 The element mapper.
 
virtual size_t entityCount (int codim) const
 Number of entities with codimension codim.
 
virtual size_t entityCount (const GeometryType &type) const
 Number of entities with geometry type type.
 
virtual bool containsEntity (const Entity< 0 > &e) const
 True if the entity e of codimension 0 is contained in this grid view. More...
 
virtual bool containsEntity (const Entity< 1 > &e) const
 True if the entity e of codimension 1 is contained in this grid view. More...
 
virtual bool containsEntity (const Entity< 2 > &e) const
 True if the entity e of codimension 2 is contained in this grid view. More...
 
virtual bool containsEntity (const Entity< 3 > &e) const
 True if the entity e of codimension 3 is contained in this grid view. More...
 
virtual const
ReverseElementMapper
reverseElementMapper () const
 Mapping from codim-0 entity index to entity pointer. More...
 
virtual std::auto_ptr< VtkWritervtkWriter (Dune::VTK::DataMode dm=Dune::VTK::conforming) const
 Create a VtkWriter for this grid view. More...
 
- Public Member Functions inherited from Bempp::GridView
virtual ~GridView ()
 
template<int codim>
std::auto_ptr< EntityIterator
< codim > > 
entityIterator () const
 Iterator over entities of codimension codim contained in this view.
 
void getRawElementData (arma::Mat< float > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData) const
 Get raw data describing the geometry of all codim-0 entities contained in this grid view. More...
 
void getRawElementData (arma::Mat< double > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData) const
 
void getRawElementData (arma::Mat< double > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData, std::vector< int > &domainIndices) const
 Get raw data describing the geometry of all codim-0 entities contained in this grid view. More...
 
void getRawElementData (arma::Mat< float > &vertices, arma::Mat< int > &elementCorners, arma::Mat< char > &auxData, std::vector< int > &domainIndices) const
 
template<>
std::auto_ptr< EntityIterator< 0 > > entityIterator () const
 
template<>
std::auto_ptr< EntityIterator< 1 > > entityIterator () const
 
template<>
std::auto_ptr< EntityIterator< 2 > > entityIterator () const
 
template<>
std::auto_ptr< EntityIterator< 3 > > entityIterator () const
 

Private Member Functions

virtual std::auto_ptr
< EntityIterator< 0 > > 
entityCodim0Iterator () const
 Iterator over entities of codimension 0 contained in this view.
 
virtual std::auto_ptr
< EntityIterator< 1 > > 
entityCodim1Iterator () const
 Iterator over entities of codimension 1 contained in this view.
 
virtual std::auto_ptr
< EntityIterator< 2 > > 
entityCodim2Iterator () const
 Iterator over entities of codimension 2 contained in this view.
 
virtual std::auto_ptr
< EntityIterator< 3 > > 
entityCodim3Iterator () const
 Iterator over entities of codimension 3 contained in this view.
 

Private Attributes

DuneGridView m_dune_gv
 
ConcreteIndexSet< DuneGridView > m_index_set
 
ConcreteElementMapper
< DuneGridView > 
m_element_mapper
 
const DomainIndexm_domain_index
 
ReverseElementMapper m_reverse_element_mapper
 
bool m_reverse_element_mapper_is_up_to_date
 

Detailed Description

template<typename DuneGridView>
class Bempp::ConcreteGridView< DuneGridView >

Wrapper of a Dune grid view of type DuneGridView.

Member Function Documentation

template<typename DuneGridView >
virtual bool Bempp::ConcreteGridView< DuneGridView >::containsEntity ( const Entity< 0 > &  e) const
inlinevirtual

True if the entity e of codimension 0 is contained in this grid view.

Note
If e is not an element of the grid, then the result of containsEntity() is undefined.

Implements Bempp::GridView.

template<typename DuneGridView >
virtual bool Bempp::ConcreteGridView< DuneGridView >::containsEntity ( const Entity< 1 > &  e) const
inlinevirtual

True if the entity e of codimension 1 is contained in this grid view.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements Bempp::GridView.

template<typename DuneGridView >
virtual bool Bempp::ConcreteGridView< DuneGridView >::containsEntity ( const Entity< 2 > &  e) const
inlinevirtual

True if the entity e of codimension 2 is contained in this grid view.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements Bempp::GridView.

template<typename DuneGridView >
virtual bool Bempp::ConcreteGridView< DuneGridView >::containsEntity ( const Entity< 3 > &  e) const
inlinevirtual

True if the entity e of codimension 3 is contained in this grid view.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements Bempp::GridView.

template<typename DuneGridView >
virtual const ReverseElementMapper& Bempp::ConcreteGridView< DuneGridView >::reverseElementMapper ( ) const
inlinevirtual

Mapping from codim-0 entity index to entity pointer.

Note that this object is not updated when the grid is adapted. In that case you need to create a new grid view and obtain a new reference to the reverse element mapper.

Implements Bempp::GridView.

template<typename DuneGridView >
virtual std::auto_ptr<VtkWriter> Bempp::ConcreteGridView< DuneGridView >::vtkWriter ( Dune::VTK::DataMode  dm = Dune::VTK::conforming) const
inlinevirtual

Create a VtkWriter for this grid view.

Parameters
dmData mode (conforming or nonconforming; see the documentation of Dune::VTK::DataMode for details).

Implements Bempp::GridView.


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