Dune::GridView< ViewTraits > Class Template Reference
[GridView]

#include <gridview.hh>

List of all members.


Detailed Description

template<class ViewTraits>
class Dune::GridView< ViewTraits >

Grid view abstract base class

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 Gridgrid () const
 obtain a const reference to the underlying hierarchic grid
const IndexSetindexSet () 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 CollectiveCommunicationcomm () 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...


Member Function Documentation

template<class ViewTraits>
template<class DataHandleImp, class DataType>
void Dune::GridView< ViewTraits >::communicate ( CommDataHandleIF< DataHandleImp, DataType > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const [inline]

communicate data on this view


The documentation for this class was generated from the following file:

Generated on Sun Nov 15 22:28:54 2009 for dune-grid by  doxygen 1.5.6