Collaboration diagram for GridView:

Classes

class  Dune::GridView< ViewTraits >
 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...

Detailed Description

Though a DUNE grid is hierarchic, one often only needs access to a certain subset of the entities in the grid, e.g., the 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 index set for the required subset can be accessed by the indexSet() method.
  • A pair of begin() / end() methods provide iterators for each codimension.
  • A pair of ibegin() / iend() methods return suitable intersection iterators for a given entity of codimension 0 in the subset.
  • For parallel computations, a suitable communicate() method is provided.
  • The underlying grid can be accessed through the grid() method.

The default GridViews can be obtained from the grid by calling one of the levelView() or leafView() methods.

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].