IdType id(const EntityType& e) const { if(idSet_) return idSet_->id(e); else return this->template getMapping<EntityType::codimension>()[e.index()]; }
IdType computeId(const EntityType& e) const { IdType myId = 0; for( int c=0; c<EntityType::codimension; ++c ) myId += grid_.indexSet().size( c ); return myId + e.index(); }
IndexType index(const EntityType& e) const { return e.index(); }
int map (const EntityType& e) const { return e.index(); }