18 class PolyhedralGridEntityPointer
20 typedef PolyhedralGridEntityPointer< codim, Grid > This;
23 typedef typename Grid::Traits Traits;
32 typedef typename Traits::template Codim< codimension >::Entity
Entity;
35 typedef typename Traits::ExtraData ExtraData;
37 typedef typename Traits::template Codim< codimension > :: EntityImpl EntityImpl;
40 explicit PolyhedralGridEntityPointer ( ExtraData data )
41 : entity_( EntityImpl( data ) )
45 : entity_( EntityImpl( entity ) )
48 PolyhedralGridEntityPointer (
const This &other )
49 : entity_( EntityImpl( other.entityImpl() ) )
52 const This &operator= (
const This &other )
54 entityImpl() = other.entityImpl();
59 bool equals (
const This &other )
const
61 return entityImpl().equals( other.entityImpl() );
70 operator const Entity& ()
const {
return entity_; }
71 operator Entity& () {
return entity_; }
74 int level ()
const {
return entity_.level(); }
77 EntityImpl &entityImpl ()
const
79 return entity_.impl();
82 ExtraData data ()
const {
return entityImpl().data(); }