1#ifndef DUNE_SPGRID_ENTITYINFO_HH
2#define DUNE_SPGRID_ENTITYINFO_HH
8#include <dune/grid/common/gridenums.hh>
22 template<
class Gr
id,
int codim >
45 typedef typename GridLevel::template Codim< codimension >::GeometryCache
GeometryCache;
48 : gridLevel_( nullptr ),
49 partitionNumber_(
std::numeric_limits< unsigned int >::max() )
54 partitionNumber_(
std::numeric_limits< unsigned int >::max() )
79 return (gridLevel_ == other.gridLevel_) && (
id() == other.
id());
104 gridLevel_ = &grid.gridLevel( level-1 );
111 gridLevel_ = &grid.gridLevel( level+1 );
124 assert( std::find(
id().begin(),
id().end(), std::numeric_limits< int >::max() ) ==
id().end() );
138 EntityDirection direction_;
139 unsigned int partitionNumber_;
Definition: iostream.hh:7
Definition: direction.hh:18
Definition: entityinfo.hh:24
MultiIndex & id()
Definition: entityinfo.hh:69
EntityInfo(const GridLevel &gridLevel, const MultiIndex &id, unsigned int partitionNumber)
Definition: entityinfo.hh:57
const GeometryCache & geometryCache() const
Definition: entityinfo.hh:87
void up()
Definition: entityinfo.hh:99
const GridLevel & gridLevel() const
Definition: entityinfo.hh:66
static const int codimension
Definition: entityinfo.hh:31
void update()
Definition: entityinfo.hh:122
PartitionType partitionType() const
Definition: entityinfo.hh:82
EntityInfo()
Definition: entityinfo.hh:47
static const int dimension
Definition: entityinfo.hh:30
bool hasFather() const
Definition: entityinfo.hh:94
unsigned int partitionNumber() const
Definition: entityinfo.hh:73
const MultiIndex & id() const
Definition: entityinfo.hh:68
void update(unsigned int partitionNumber)
Definition: entityinfo.hh:129
GridLevel::GlobalVector GlobalVector
Definition: entityinfo.hh:41
bool equals(const This &other) const
Definition: entityinfo.hh:77
Direction direction() const
Definition: entityinfo.hh:71
GridLevel::Traits Traits
Definition: entityinfo.hh:43
GridLevel::MultiIndex MultiIndex
Definition: entityinfo.hh:40
EntityDirection::Direction Direction
Definition: entityinfo.hh:38
bool nextChild()
Definition: entityinfo.hh:115
EntityInfo(const GridLevel &gridLevel)
Definition: entityinfo.hh:52
SPGridLevel< typename std::remove_const< Grid >::type > GridLevel
Definition: entityinfo.hh:28
GridLevel::template Codim< codimension >::GeometryCache GeometryCache
Definition: entityinfo.hh:45
void down()
Definition: entityinfo.hh:107
static const int mydimension
Definition: entityinfo.hh:32
Definition: gridlevel.hh:35
const Refinement & refinement() const
Definition: gridlevel.hh:85
static const int dimension
Definition: gridlevel.hh:45
std::remove_const< Grid >::type::Traits Traits
Definition: gridlevel.hh:49
int level() const
Definition: gridlevel.hh:83
ReferenceCube::GlobalVector GlobalVector
Definition: gridlevel.hh:55
const Grid & grid() const
Definition: gridlevel.hh:82