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

Wrapper of a Dune entity of type DuneEntity and codimension codim. More...

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

Inheritance diagram for Bempp::ConcreteEntity< codim, DuneEntity >:
Bempp::Entity< codim >

Public Member Functions

 ConcreteEntity ()
 Default constructor.
 
 ConcreteEntity (const DomainIndex &)
 Constructor taking a single unused parameter – for compatibility with the specialization for codim = 0.
 
 ConcreteEntity (const DuneEntity *dune_entity)
 Constructor from a pointer to DuneEntity. More...
 
 ConcreteEntity (const DuneEntity *dune_entity, const DomainIndex &)
 Constructor from a pointer to DuneEntity. More...
 
const DuneEntity & duneEntity () const
 Read-only access to the underlying Dune entity object.
 
virtual size_t level () const
 Entity level.
 
virtual const Geometrygeometry () const
 Reference to the geometry of this entity. More...
 
virtual GeometryType type () const
 Type of the reference element. More...
 
- Public Member Functions inherited from Bempp::Entity< codim >
virtual ~Entity ()
 Destructor.
 

Private Member Functions

 dune_static_assert ((int) DuneEntity::codimension==(int) Entity< codim >::codimension,"ConcreteEntity: codimension mismatch")
 
void setDuneEntity (const DuneEntity *dune_entity)
 

Private Attributes

const DuneEntity * m_dune_entity
 
ConcreteGeometry< typename
DuneEntity::Geometry > 
m_geometry
 

Friends

template<typename >
class ConcreteEntityPointer
 
template<typename , typename >
class ConcreteRangeEntityIterator
 
template<typename , int >
class ConcreteSubentityIterator
 

Additional Inherited Members

- Public Types inherited from Bempp::Entity< codim >
enum  { codimension = codim }
 Entity codimension.
 

Detailed Description

template<int codim, typename DuneEntity>
class Bempp::ConcreteEntity< codim, DuneEntity >

Wrapper of a Dune entity of type DuneEntity and codimension codim.

Note
The codimension must be given explicitly (even though it could be derived from the traits of DuneEntity) because this class needs to be specialised for entities of codimension 0.

Constructor & Destructor Documentation

template<int codim, typename DuneEntity>
Bempp::ConcreteEntity< codim, DuneEntity >::ConcreteEntity ( const DuneEntity *  dune_entity)
inlineexplicit

Constructor from a pointer to DuneEntity.

Note
This object does not acquire ownership of *dune_entity.
template<int codim, typename DuneEntity>
Bempp::ConcreteEntity< codim, DuneEntity >::ConcreteEntity ( const DuneEntity *  dune_entity,
const DomainIndex  
)
inline

Constructor from a pointer to DuneEntity.

Note
This object does not acquire ownership of *dune_entity.

Member Function Documentation

template<int codim, typename DuneEntity>
virtual const Geometry& Bempp::ConcreteEntity< codim, DuneEntity >::geometry ( ) const
inlinevirtual

Reference to the geometry of this entity.

This object gives, among other things, the map from a reference element to world coordinates.

Note
Be careful when storing such references. If the state of any object is changed, e.g. an iterator is advanced, there is no guarantee that the reference remains valid.

Implements Bempp::Entity< codim >.

template<int codim, typename DuneEntity>
virtual GeometryType Bempp::ConcreteEntity< codim, DuneEntity >::type ( ) const
inlinevirtual

Type of the reference element.

The type can be used to access the Dune::GenericReferenceElement.

Implements Bempp::Entity< codim >.


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