3 #ifndef DUNE_ALBERTA_ENTITYPOINTER_HH
4 #define DUNE_ALBERTA_ENTITYPOINTER_HH
18 template<
int dim,
int dimworld >
27 template<
int codim,
class Gr
idImp >
28 class AlbertaGridEntityPointer
53 const ElementInfo &elementInfo,
73 This &operator= ( const This &other );
78 bool
equals ( const This &other ) const;
94 const GridImp &
grid () const;
102 template< int codim, class GridImp >
105 const ElementInfo &elementInfo,
107 : entity_( EntityImp( grid, elementInfo, subEntity ) )
111 template<
int codim,
class Gr
idImp >
118 template<
int codim,
class Gr
idImp >
126 template<
int codim,
class Gr
idImp >
129 : entity_( other.entity_ )
135 template<
int codim,
class Gr
idImp >
136 inline AlbertaGridEntityPointer< codim, GridImp >::~AlbertaGridEntityPointer ()
142 template<
int codim,
class Gr
idImp >
143 inline typename AlbertaGridEntityPointer< codim, GridImp >::This &
144 AlbertaGridEntityPointer< codim, GridImp >::operator= (
const This &other )
146 entityImp().setEntity( other.entityImp() );
152 template<
int codim,
class Gr
idImp >
160 template<
int codim,
class Gr
idImp >
168 template<
int codim,
class Gr
idImp >
175 template<
int codim,
class Gr
idImp >
179 return GridImp::getRealImplementation( entity_ );
183 template<
int codim,
class Gr
idImp >
187 return GridImp::getRealImplementation( entity_ );
191 template<
int codim,
class Gr
idImp >
199 #endif // #if HAVE_ALBERTA
201 #endif // #ifndef DUNE_ALBERTA_ENTITYPOINTER_HH
int level() const
ask for level of entities
Definition: albertagrid/entitypointer.hh:169
static const int dimension
Definition: albertagrid/entitypointer.hh:35
Entity & dereference() const
dereferencing
Definition: albertagrid/entitypointer.hh:162
static const int mydimension
Definition: albertagrid/entitypointer.hh:37
GridImp::template Codim< codimension >::Entity Entity
Definition: albertagrid/entitypointer.hh:40
bool equals(const This &other) const
equality
Definition: albertagrid/entitypointer.hh:154
Definition: objectfactory.hh:23
[ provides Dune::Grid ]
Definition: agrid.hh:137
const GridImp & grid() const
obtain a reference to the grid
Definition: albertagrid/entitypointer.hh:192
provides a wrapper for ALBERTA's el_info structure
static const int codimension
Definition: albertagrid/entitypointer.hh:36
Entity::Implementation ImplementationType
Definition: common/grid.hh:1377
Wrapper and interface classe for a static iterator (EntityPointer)
EntityImp::ElementInfo ElementInfo
Definition: albertagrid/entitypointer.hh:49
AlbertaGridEntityPointer(const GridImp &grid, const ElementInfo &elementInfo, int subEntity)
make an EntityPointer that points to an element
Definition: albertagrid/entitypointer.hh:104
EntityImp & entityImp()
obtain reference to internal entity implementation
Definition: albertagrid/entitypointer.hh:177
static const int dimensionworld
Definition: albertagrid/entitypointer.hh:38
EntityObject::ImplementationType EntityImp
Definition: albertagrid/entitypointer.hh:44