3 #ifndef DUNE_GRIDVIEW_HH
4 #define DUNE_GRIDVIEW_HH
6 #include <dune/geometry/type.hh>
14 template<
int,
int,
class,
class >
15 class GridDefaultImplementation;
55 template<
class ViewTraits >
67 typedef typename Traits :: Grid
Grid;
102 template< PartitionIteratorType pit >
149 return impl().grid();
160 return impl().indexSet();
166 return impl().size( codim );
172 return impl().size( type );
181 template<
class EntityType>
184 return impl().indexSet().contains(e);
191 return impl().template begin<cd>();
198 return impl().template end<cd>();
202 template<
int cd , PartitionIteratorType pitype >
203 typename Codim< cd > :: template Partition< pitype > :: Iterator
206 return impl().template begin<cd,pitype>();
210 template<
int cd, PartitionIteratorType pitype >
211 typename Codim< cd > :: template Partition< pitype > :: Iterator
214 return impl().template end<cd,pitype>();
221 return impl().ibegin(entity);
228 return impl().iend(entity);
234 return impl().comm();
240 return impl().overlapSize(codim);
246 return impl().ghostSize(codim);
250 template<
class DataHandleImp,
class DataType >
255 impl().communicate(data,iftype,dir);
258 #if DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
281 DUNE_DEPRECATED_MSG("Use
impl() instead.")
291 DUNE_DEPRECATED_MSG("Use
impl() instead.")
299 #endif // #ifndef DUNE_GRIDVIEW_HH
Traits::IndexSet IndexSet
type of the index set
Definition: common/gridview.hh:70
The dimension of the world the grid lives in.
Definition: common/gridview.hh:124
Codim< cd >::Iterator end() const
obtain end iterator for this view
Definition: common/gridview.hh:196
GridView(const GridViewImp &imp)
constructor (engine concept)
Definition: common/gridview.hh:129
A struct that collects all associated types of one implementation from the Traits class...
Definition: common/gridview.hh:85
const GridViewImp & asImp() const
Definition: common/gridview.hh:290
Traits::Grid Grid
type of the grid
Definition: common/gridview.hh:67
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:178
The dimension of the grid.
Definition: common/gridview.hh:120
Implementation impl_
Definition: common/gridview.hh:274
Grid::ctype ctype
type used for coordinates in grid
Definition: common/gridview.hh:117
Codim< cd >::template Partition< pitype >::Iterator end() const
obtain end iterator for this view
Definition: common/gridview.hh:212
bool contains(const EntityType &e) const
Return true if the given entity is contained in this grid view.
Definition: common/gridview.hh:182
int size(const GeometryType &type) const
obtain number of entities with a given geometry type
Definition: common/gridview.hh:170
Traits::CollectiveCommunication CollectiveCommunication
type of the collective communication
Definition: common/gridview.hh:79
CommunicationDirection
Define a type for communication direction parameter.
Definition: gridenums.hh:164
Traits::IntersectionIterator IntersectionIterator
type of the intersection iterator
Definition: common/gridview.hh:76
Implementation & impl()
return reference to the real implementation
Definition: common/gridview.hh:269
Traits::template Codim< cd >::Entity Entity
type of corresponding entity
Definition: common/gridview.hh:93
The dimension of the world the grid lives in.
Definition: common/grid.hh:406
Traits::Intersection Intersection
type of the intersection
Definition: common/gridview.hh:73
Define types needed to iterate over entities of a given partition type.
Definition: common/gridview.hh:103
Codim< cd >::Iterator begin() const
obtain begin iterator for this view
Definition: common/gridview.hh:189
The dimension of the grid.
Definition: common/grid.hh:400
CommDataHandleIF describes the features of a data handle for communication in parallel runs using the...
Definition: datahandleif.hh:74
Codim< cd >::template Partition< pitype >::Iterator begin() const
obtain begin iterator for this view
Definition: common/gridview.hh:204
Traits::template Codim< cd >::EntityPointer EntityPointer
type of corresponding entity pointer
Definition: common/gridview.hh:90
Traits::template Codim< cd >::LocalGeometry LocalGeometry
type of the implementation for local geometries
Definition: common/gridview.hh:99
Definition: alugrid/common/declaration.hh:20
int ghostSize(int codim) const
Return size of the ghost region for a given codim on the grid view.
Definition: common/gridview.hh:244
IntersectionIterator ibegin(const typename Codim< 0 >::Entity &entity) const
obtain begin intersection iterator with respect to this view
Definition: common/gridview.hh:219
Grid view abstract base classInterface class for a view on grids. Grids return two types of view...
Definition: common/gridview.hh:56
Traits::template Codim< cd >::Iterator Iterator
type of iterator returned by the grid view
Definition: common/gridview.hh:87
const Grid & grid() const
obtain a const reference to the underlying hierarchic grid
Definition: common/gridview.hh:147
GridView(const ThisType &other)
Copy constructor.
Definition: common/gridview.hh:134
Traits::template Codim< cd >::template Partition< pit >::Iterator Iterator
iterator over a given codim and partition type
Definition: common/gridview.hh:107
Mesh entities of codimension 0 ("elements") allow to visit all intersections with "neighboring" eleme...
Definition: common/grid.hh:358
Traits::template Codim< cd >::Geometry Geometry
type of the geometry implementation
Definition: common/gridview.hh:96
ThisType & operator=(const ThisType &other)
assignment operator
Definition: common/gridview.hh:139
Export if this grid view is conforming */.
Definition: common/gridview.hh:113
ct ctype
Define type used for coordinates in grid module.
Definition: common/grid.hh:546
const Implementation & impl() const
return reference to the real implementation
Definition: common/gridview.hh:271
Definition: common/geometry.hh:24
ViewTraits::GridViewImp GridViewImp
Definition: common/gridview.hh:61
IntersectionIterator iend(const typename Codim< 0 >::Entity &entity) const
obtain end intersection iterator with respect to this view
Definition: common/gridview.hh:226
void communicate(CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
Definition: common/gridview.hh:251
InterfaceType
Parameter to be used for the communication functions.
Definition: gridenums.hh:80
const CollectiveCommunication & comm() const
obtain collective communication object
Definition: common/gridview.hh:232
const IndexSet & indexSet() const
obtain the index set
Definition: common/gridview.hh:158
int overlapSize(int codim) const
Return size of the overlap region for a given codim on the grid view.
Definition: common/gridview.hh:238
int size(int codim) const
obtain number of entities in a given codimension
Definition: common/gridview.hh:164
ViewTraits Traits
Traits class.
Definition: common/gridview.hh:64
Describes the parallel communication interface class for MessageBuffers and DataHandles.
GridViewImp Implementation
Definition: common/gridview.hh:266
GridViewImp & asImp()
Definition: common/gridview.hh:280