#include <gridview.hh>
Interface class for 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.
Public Types | |
enum | |
Export if this grid view is conforming. | |
enum | |
Dimension of the grid. | |
enum | |
Dimension of the world. | |
typedef ViewTraits | Traits |
Traits class. | |
typedef Traits::Grid | Grid |
type of the grid | |
typedef Traits::IndexSet | IndexSet |
type of the index set | |
typedef Traits::Intersection | Intersection |
type of the intersection | |
typedef Traits::IntersectionIterator | IntersectionIterator |
type of the intersection iterator | |
typedef Traits::CollectiveCommunication | CollectiveCommunication |
type of the collective communication | |
Public Member Functions | |
GridView (const ThisType &other) | |
Copy constructor. | |
const Grid & | grid () const |
obtain a const reference to the underlying hierarchic grid | |
const IndexSet & | indexSet () const |
obtain the index set | |
int | size (int codim) const |
obtain numer of entities in a given codimension | |
int | size (const GeometryType &type) const |
obtain number of entities with a given geometry type | |
template<int cd> | |
Codim< cd >::Iterator | begin () const |
obtain begin iterator for this view | |
template<int cd> | |
Codim< cd >::Iterator | end () const |
obtain end iterator for this view | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | begin () const |
obtain begin iterator for this view | |
template<int cd, PartitionIteratorType pitype> | |
Codim< cd >::template Partition< pitype >::Iterator | end () const |
obtain end iterator for this view | |
IntersectionIterator | ibegin (const typename Codim< 0 >::Entity &entity) const |
obtain begin intersection iterator with respect to this view | |
IntersectionIterator | iend (const typename Codim< 0 >::Entity &entity) const |
obtain end intersection iterator with respect to this view | |
const CollectiveCommunication & | comm () const |
obtain collective communication object | |
template<class DataHandleImp, class DataType> | |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
Classes | |
struct | Codim |
Codim Structure. More... |
void Dune::GridView< ViewTraits >::communicate | ( | CommDataHandleIF< DataHandleImp, DataType > & | data, | |
InterfaceType | iftype, | |||
CommunicationDirection | dir | |||
) | const [inline] |
communicate data on this view