Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

enumerated_subrange_ref Class Template Reference
[Enumerated Grid Subranges]

#include <enumerated-subrange.h>

List of all members.

Public Types

typedef Grid grid_type
typedef grid_types< Grid > gt
typedef gt::vertex_handle vertex_handle
typedef gt::cell_handle cell_handle
typedef gt::Cell Cell
typedef gt::Vertex Vertex
typedef gt::VertexOnCellIterator VertexOnCellIterator
typedef tp< Vertex > tpV
typedef tp< Cell > tpC
typedef enumerated_subrange<
Grid > 
range_type
typedef range_type::vertex_range_type vertex_range_ref_t
typedef range_type::cell_range_type cell_range_ref_t
typedef vertex_range_ref_t::VertexIterator VertexIterator
typedef cell_range_ref_t::CellIterator CellIterator
typedef facet_set_of_cells_iterator<
CellIterator > 
FacetIterator
typedef FacetIterator EdgeIterator

Public Methods

 enumerated_subrange_ref ()
 enumerated_subrange_ref (const range_type &R)
 enumerated_subrange_ref (const vertex_range_ref_t &V, const cell_range_ref_t &C)
unsigned NumOfCells () const
unsigned NumOfVertices () const
unsigned NumOfEdges () const
CellIterator FirstCell () const
VertexIterator FirstVertex () const
FacetIterator FirstFacet () const
FacetIterator FirstEdge () const
CellIterator EndCell () const
VertexIterator EndVertex () const
FacetIterator EndFacet () const
FacetIterator EndEdge () const
vertex_range_ref_t range (tpV) const
cell_range_ref_t range (tpC) const
grid_type const & TheGrid () const
cell_handle handle (const Cell &C) const
vertex_handle handle (const Vertex &V) const


Detailed Description

template<class Grid>
class enumerated_subrange_ref< Grid >

A grid subrange view that is a simple enumeration of its elements.
See also:
Enumerated Grid Subranges
Model of $Gral GridVertex Range, CellRange.

This class has reference-semantics.

There is no check if the different element ranges are consistent, i.e. if the sequence of vertices is exactly the set of adjacent vertices to the sequence of cells. This has to be ensured by the underlying grid range.

Todo:
Facets work correctly only for 2D.

Definition at line 645 of file enumerated-subrange.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:05:58 2002 for GrAL Base by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000