dune-grid
2.2.1
|
Grid view abstract base classInterface class for a view on grids. Grids return two types of view, a view of the leaf grid and of a level grid, which both satisfy the same interface. Through the view the user has access to the iterators, the intersections and the index set. More...
#include <dune/grid/common/gridview.hh>
Classes | |
struct | Codim |
A struct that collects all associated types of one implementation from the Traits class. More... | |
Public Types | |
enum | { conforming = Traits :: conforming } |
enum | { dimension = Grid :: dimension } |
enum | { dimensionworld = Grid :: dimensionworld } |
typedef ViewTraits::GridViewImp | GridViewImp |
typedef ViewTraits | Traits |
Traits class. More... | |
typedef Traits::Grid | Grid |
type of the grid More... | |
typedef Traits::IndexSet | IndexSet |
type of the index set More... | |
typedef Traits::Intersection | Intersection |
type of the intersection More... | |
typedef Traits::IntersectionIterator | IntersectionIterator |
type of the intersection iterator More... | |
typedef Traits::CollectiveCommunication | CollectiveCommunication |
type of the collective communication More... | |
typedef Grid::ctype | ctype |
type used for coordinates in grid More... | |
Public Member Functions | |
GridView (const GridViewImp &imp) | |
constructor (engine concept) More... | |
GridView (const ThisType &other) | |
Copy constructor. More... | |
ThisType & | operator= (const ThisType &other) |
assignment operator More... | |
const Grid & | grid () const |
obtain a const reference to the underlying hierarchic grid More... | |
const IndexSet & | indexSet () const |
obtain the index set More... | |
int | size (int codim) const |
obtain number of entities in a given codimension More... | |
int | size (const GeometryType &type) const |
obtain number of entities with a given geometry type More... | |
template<class EntityType > | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in this grid view. More... | |
template<int cd> | |
Codim< cd >::Iterator | begin () const |
obtain begin iterator for this view More... | |
template<int cd> | |
Codim< cd >::Iterator | end () const |
obtain end iterator for this view More... | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | begin () const |
obtain begin iterator for this view More... | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | end () const |
obtain end iterator for this view More... | |
IntersectionIterator | ibegin (const typename Codim< 0 >::Entity &entity) const |
obtain begin intersection iterator with respect to this view More... | |
IntersectionIterator | iend (const typename Codim< 0 >::Entity &entity) const |
obtain end intersection iterator with respect to this view More... | |
const CollectiveCommunication & | comm () const |
obtain collective communication object More... | |
int | overlapSize (int codim) const |
Return size of the overlap region for a given codim on the grid view. More... | |
int | ghostSize (int codim) const |
Return size of the ghost region for a given codim on the grid view. More... | |
template<class DataHandleImp , class DataType > | |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
Protected Types | |
typedef GridViewImp | Implementation |
Protected Member Functions | |
Implementation & | impl () |
return reference to the real implementation More... | |
const Implementation & | impl () const |
return reference to the real implementation More... | |
GridViewImp & | asImp () |
const GridViewImp & | asImp () const |
Protected Attributes | |
Implementation | impl_ |
Friends | |
class | GridDefaultImplementation< Grid::dimension, Grid::dimensionworld, typename Grid::ctype, typename Grid::GridFamily > |
Grid view abstract base class
Interface class for a view on grids. Grids return two types of view, a view of the leaf grid and of a level grid, which both satisfy the same interface. Through the view the user has access to the iterators, the intersections and the index set.
The interface is implemented using the engine concept.
typedef Traits :: CollectiveCommunication Dune::GridView< ViewTraits >::CollectiveCommunication |
type of the collective communication
typedef Grid::ctype Dune::GridView< ViewTraits >::ctype |
type used for coordinates in grid
typedef Traits :: Grid Dune::GridView< ViewTraits >::Grid |
type of the grid
typedef ViewTraits :: GridViewImp Dune::GridView< ViewTraits >::GridViewImp |
|
protected |
typedef Traits :: IndexSet Dune::GridView< ViewTraits >::IndexSet |
type of the index set
typedef Traits :: Intersection Dune::GridView< ViewTraits >::Intersection |
type of the intersection
typedef Traits :: IntersectionIterator Dune::GridView< ViewTraits >::IntersectionIterator |
type of the intersection iterator
typedef ViewTraits Dune::GridView< ViewTraits >::Traits |
Traits class.
anonymous enum |
anonymous enum |
|
inline |
constructor (engine concept)
|
inline |
Copy constructor.
|
inlineprotected |
References Dune::GridView< ViewTraits >::impl_.
Referenced by Dune::GridView< ViewTraits >::begin(), Dune::GridView< ViewTraits >::comm(), Dune::GridView< ViewTraits >::communicate(), Dune::GridView< ViewTraits >::contains(), Dune::GridView< ViewTraits >::end(), Dune::GridView< ViewTraits >::ghostSize(), Dune::GridView< ViewTraits >::grid(), Dune::GridView< ViewTraits >::ibegin(), Dune::GridView< ViewTraits >::iend(), Dune::GridView< ViewTraits >::indexSet(), Dune::GridView< ViewTraits >::overlapSize(), and Dune::GridView< ViewTraits >::size().
|
inlineprotected |
References Dune::GridView< ViewTraits >::impl_.
|
inline |
obtain begin iterator for this view
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain begin iterator for this view
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain collective communication object
References Dune::GridView< ViewTraits >::asImp().
Referenced by Dune::VTKWriter< GridView >::pwrite(), Dune::VTKSequenceWriter< GridView >::VTKSequenceWriter(), and Dune::VTKWriter< GridView >::write().
|
inline |
communicate data on this view
References Dune::GridView< ViewTraits >::asImp().
|
inline |
Return true if the given entity is contained in this grid view.
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain end iterator for this view
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain end iterator for this view
References Dune::GridView< ViewTraits >::asImp().
|
inline |
Return size of the ghost region for a given codim on the grid view.
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain a const reference to the underlying hierarchic grid
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain begin intersection iterator with respect to this view
References Dune::GridView< ViewTraits >::asImp().
Referenced by Dune::GridPtr< GridType >::initialize().
|
inline |
obtain end intersection iterator with respect to this view
References Dune::GridView< ViewTraits >::asImp().
Referenced by Dune::GridPtr< GridType >::initialize().
|
inlineprotected |
return reference to the real implementation
References Dune::GridView< ViewTraits >::impl_.
|
inlineprotected |
return reference to the real implementation
References Dune::GridView< ViewTraits >::impl_.
|
inline |
obtain the index set
References Dune::GridView< ViewTraits >::asImp().
Referenced by Dune::AmiraMeshWriter< GridView >::addCellData(), Dune::AmiraMeshWriter< GridView >::addGrid(), Dune::AmiraMeshWriter< GridView >::addVertexData(), Dune::GridPtr< GridType >::DataHandle::DataHandle(), Dune::GridPtr< GridType >::initialize(), main(), Dune::GridPtr< GridType >::parameters(), Dune::GridPtr< GridType >::params(), Dune::AmiraMeshWriter< GridView >::writeSurfaceGrid(), and Dune::GridPtr< GridType >::DataHandle::~DataHandle().
|
inline |
assignment operator
References Dune::GridView< ViewTraits >::impl_.
|
inline |
Return size of the overlap region for a given codim on the grid view.
References Dune::GridView< ViewTraits >::asImp().
|
inline |
obtain number of entities in a given codimension
References Dune::GridView< ViewTraits >::asImp().
Referenced by Dune::AmiraMeshWriter< GridView >::addGrid(), and Dune::AmiraMeshWriter< GridView >::writeSurfaceGrid().
|
inline |
obtain number of entities with a given geometry type
References Dune::GridView< ViewTraits >::asImp().
|
friend |
|
protected |