dune-grid 2.10
|
Classes | |
class | Dune::GridView< ViewTraits > |
Grid view abstract base class. More... | |
struct | Dune::GridView< ViewTraits >::Codim< cd > |
A struct that collects all associated types of one implementation from the Traits class. More... | |
struct | Dune::GridView< ViewTraits >::Codim< cd >::Partition< pit > |
Define types needed to iterate over entities of a given partition type. More... | |
struct | Dune::GridView< ViewTraits >::DeprecatedMethodEmptyFuture |
Typedefs | |
typedef ViewTraits::GridViewImp | Dune::GridView< ViewTraits >::Implementation |
type of underlying implementation | |
typedef ViewTraits::GridViewImp | Dune::GridView< ViewTraits >::GridViewImp |
typedef ViewTraits | Dune::GridView< ViewTraits >::Traits |
Traits class. | |
typedef Traits::Grid | Dune::GridView< ViewTraits >::Grid |
type of the grid | |
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 | |
using | Dune::GridView< ViewTraits >::Communication = typename Traits :: Communication |
A type that is a model of Dune::Communication. It provides a portable way for communication on the set of processes used by the grid. | |
typedef Traits::template Codim< cd >::Iterator | Dune::GridView< ViewTraits >::Codim< cd >::Iterator |
type of iterator returned by the grid view | |
typedef Traits::template Codim< cd >::Entity | Dune::GridView< ViewTraits >::Codim< cd >::Entity |
type of corresponding entity | |
typedef Traits::template Codim< cd >::Geometry | Dune::GridView< ViewTraits >::Codim< cd >::Geometry |
type of the geometry implementation | |
typedef Traits::template Codim< cd >::LocalGeometry | Dune::GridView< ViewTraits >::Codim< cd >::LocalGeometry |
type of the implementation for local geometries | |
typedef Traits::template Codim< cd >::template Partition< pit >::Iterator | Dune::GridView< ViewTraits >::Codim< cd >::Partition< pit >::Iterator |
iterator over a given codim and partition type | |
typedef Grid::ctype | Dune::GridView< ViewTraits >::ctype |
type used for coordinates in grid | |
Functions | |
template<int dim, int dimworld, class ct , class GridFamily > | |
Grid< dim, dimworld, ct, GridFamily >::LevelGridView | Dune::levelGridView (const Grid< dim, dimworld, ct, GridFamily > &grid, int level) |
level grid view for the given grid and level. | |
template<int dim, int dimworld, class ct , class GridFamily > | |
Grid< dim, dimworld, ct, GridFamily >::LeafGridView | Dune::leafGridView (const Grid< dim, dimworld, ct, GridFamily > &grid) |
leaf grid view for the given grid | |
void | Dune::GridView< ViewTraits >::DeprecatedMethodEmptyFuture::printMessage () const |
bool | Dune::GridView< ViewTraits >::DeprecatedMethodEmptyFuture::ready () |
void | Dune::GridView< ViewTraits >::DeprecatedMethodEmptyFuture::wait () |
bool | Dune::GridView< ViewTraits >::DeprecatedMethodEmptyFuture::valid () const |
Variables | |
static constexpr bool | Dune::GridView< ViewTraits >::conforming = Traits :: conforming |
Export if this grid view is guaranteed conforming. | |
static constexpr int | Dune::GridView< ViewTraits >::dimension = Grid :: dimension |
The dimension of the grid. | |
static constexpr int | Dune::GridView< ViewTraits >::dimensionworld = Grid :: dimensionworld |
The dimension of the world the grid lives in. | |
Interface for the implementor | |
Implementation | Dune::GridView< ViewTraits >::impl_ |
Dune::GridView< ViewTraits >::GridView (const Implementation &imp) | |
constructor (engine concept) | |
Dune::GridView< ViewTraits >::GridView (const ThisType &other) | |
Copy constructor. | |
ThisType & | Dune::GridView< ViewTraits >::operator= (const ThisType &other) |
assignment operator | |
const Grid & | Dune::GridView< ViewTraits >::grid () const |
obtain a const reference to the underlying hierarchic grid | |
const IndexSet & | Dune::GridView< ViewTraits >::indexSet () const |
obtain the index set | |
int | Dune::GridView< ViewTraits >::size (int codim) const |
obtain number of entities in a given codimension | |
int | Dune::GridView< ViewTraits >::size (const GeometryType &type) const |
obtain number of entities with a given geometry type | |
bool | Dune::GridView< ViewTraits >::isConforming () const |
return true if current state of grid view represents a conforming grid | |
template<class EntityType > | |
bool | Dune::GridView< ViewTraits >::contains (const EntityType &e) const |
Return true if the given entity is contained in this grid view. | |
template<int cd> | |
Codim< cd >::Iterator | Dune::GridView< ViewTraits >::begin () const |
obtain begin iterator for this view | |
template<int cd> | |
Codim< cd >::Iterator | Dune::GridView< ViewTraits >::end () const |
obtain end iterator for this view | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | Dune::GridView< ViewTraits >::begin () const |
obtain begin iterator for this view | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | Dune::GridView< ViewTraits >::end () const |
obtain end iterator for this view | |
IntersectionIterator | Dune::GridView< ViewTraits >::ibegin (const typename Codim< 0 > ::Entity &entity) const |
obtain begin intersection iterator with respect to this view | |
IntersectionIterator | Dune::GridView< ViewTraits >::iend (const typename Codim< 0 > ::Entity &entity) const |
obtain end intersection iterator with respect to this view | |
const Communication & | Dune::GridView< ViewTraits >::comm () const |
obtain communication object | |
int | Dune::GridView< ViewTraits >::overlapSize (int codim) const |
Return size of the overlap region for a given codim on the grid view. | |
int | Dune::GridView< ViewTraits >::ghostSize (int codim) const |
Return size of the ghost region for a given codim on the grid view. | |
template<class DataHandleImp , class DataType > | |
auto | Dune::GridView< ViewTraits >::communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
Communicate data on this view. | |
Implementation & | Dune::GridView< ViewTraits >::impl () |
access to the underlying implementation | |
const Implementation & | Dune::GridView< ViewTraits >::impl () const |
access to the underlying implementation | |
template<class DataHandleImp , class DataType > | |
auto | Dune::GridView< ViewTraits >::communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir, std::integral_constant< bool, false >) const |
Communicate data on this view. | |
template<class DataHandleImp , class DataType > | |
auto | Dune::GridView< ViewTraits >::communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir, std::integral_constant< bool, true >) const |
Communicate data on this view. | |
Though a DUNE grid is hierarchic, one often only needs access to a certain subset of the entities in the grid, e.g., all entities on a given level or the leaf entities in the hierarchy. These views are provided by an implementation of GridView. Each grid exports a LevelGridView and a LeafGridView, corresponding to the two different subsets (views) described above.
A grid view provides the following functionality:
The default GridViews can be obtained from the grid by calling one of the levelGridView() or leafGridView() methods which are provided as both free functions and member functions of the Grid interface class.
using Dune::GridView< ViewTraits >::Communication = typename Traits :: Communication |
A type that is a model of Dune::Communication. It provides a portable way for communication on the set of processes used by the grid.
Grid::ctype Dune::GridView< ViewTraits >::ctype |
type used for coordinates in grid
Traits::template Codim<cd>::Entity Dune::GridView< ViewTraits >::Codim< cd >::Entity |
type of corresponding entity
Traits::template Codim<cd>::Geometry Dune::GridView< ViewTraits >::Codim< cd >::Geometry |
type of the geometry implementation
Traits::Grid Dune::GridView< ViewTraits >::Grid |
type of the grid
ViewTraits::GridViewImp Dune::GridView< ViewTraits >::GridViewImp |
ViewTraits::GridViewImp Dune::GridView< ViewTraits >::Implementation |
type of underlying implementation
Traits::IndexSet Dune::GridView< ViewTraits >::IndexSet |
type of the index set
Traits::Intersection Dune::GridView< ViewTraits >::Intersection |
type of the intersection
Traits::IntersectionIterator Dune::GridView< ViewTraits >::IntersectionIterator |
type of the intersection iterator
Traits::template Codim<cd>::Iterator Dune::GridView< ViewTraits >::Codim< cd >::Iterator |
type of iterator returned by the grid view
Traits::template Codim<cd>::template Partition<pit>::Iterator Dune::GridView< ViewTraits >::Codim< cd >::Partition< pit >::Iterator |
iterator over a given codim and partition type
Traits::template Codim<cd>::LocalGeometry Dune::GridView< ViewTraits >::Codim< cd >::LocalGeometry |
type of the implementation for local geometries
ViewTraits Dune::GridView< ViewTraits >::Traits |
Traits class.
|
inline |
obtain begin iterator for this view
|
inline |
obtain begin iterator for this view
|
inline |
obtain communication object
|
inline |
Communicate data on this view.
|
inlineprotected |
Communicate data on this view.
|
inlineprotected |
Communicate data on this view.
|
inline |
Return true if the given entity is contained in this grid view.
|
inline |
obtain end iterator for this view
|
inline |
obtain end iterator for this view
|
inline |
Return size of the ghost region for a given codim on the grid view.
|
inline |
obtain a const reference to the underlying hierarchic grid
|
inline |
constructor (engine concept)
|
inline |
Copy constructor.
|
inline |
obtain begin intersection iterator with respect to this view
|
inline |
obtain end intersection iterator with respect to this view
|
inline |
access to the underlying implementation
|
inline |
access to the underlying implementation
|
inline |
obtain the index set
The lifetime of the returned index set is bound to the lifetime of the grid view. Keep a copy of the grid view to prevent the index set from becoming a dangling reference.
|
inline |
return true if current state of grid view represents a conforming grid
Grid< dim, dimworld, ct, GridFamily >::LeafGridView Dune::leafGridView | ( | const Grid< dim, dimworld, ct, GridFamily > & | grid | ) |
leaf grid view for the given grid
Identical to the method in the Grid interface, but provided as a free function.
grid | Grid to obtain the leaf grid view for |
Grid< dim, dimworld, ct, GridFamily >::LevelGridView Dune::levelGridView | ( | const Grid< dim, dimworld, ct, GridFamily > & | grid, |
int | level ) |
level grid view for the given grid and level.
Identical to the method in the Grid interface, but provided as a free function.
grid | Grid to obtain the level grid view for |
level | level of the level grid view |
|
inline |
assignment operator
|
inline |
Return size of the overlap region for a given codim on the grid view.
|
inline |
|
inline |
|
inline |
obtain number of entities with a given geometry type
|
inline |
obtain number of entities in a given codimension
|
inline |
|
inline |
|
staticconstexpr |
Export if this grid view is guaranteed conforming.
|
staticconstexpr |
The dimension of the grid.
|
staticconstexpr |
The dimension of the world the grid lives in.
|
protected |