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 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 vector< vertex_handle > vertex_sequence
typedef vector< cell_handle > cell_sequence
typedef vertex_sequence::const_iterator v_iterator
typedef cell_sequence::const_iterator c_iterator
typedef vertex_range_ref<
grid_type, vertex_sequence > 
vertex_range_type
typedef cell_range_ref< grid_type,
cell_sequence > 
cell_range_type
typedef mapped_element_ra_seq_iterator<
vertex_sequence, handle2element_map<
Vertex > > 
VertexIterator
typedef mapped_element_ra_seq_iterator<
cell_sequence, handle2element_map<
Cell > > 
CellIterator
typedef facet_set_of_cells_iterator<
CellIterator > 
FacetIterator
typedef FacetIterator EdgeIterator

Public Methods

 enumerated_subrange ()
 enumerated_subrange (const grid_type &g)
void append_vertex (vertex_handle v)
void append_cell (cell_handle v)
unsigned NumOfCells () const
unsigned NumOfVertices () const
unsigned NumOfEdges () const
CellIterator FirstCell () const
CellIterator EndCell () const
VertexIterator FirstVertex () const
VertexIterator EndVertex () const
FacetIterator FirstFacet () const
FacetIterator FirstEdge () const
FacetIterator EndFacet () const
FacetIterator EndEdge () const
vertex_range_type range (tpV) const
vertex_range_type vertex_range () const
vertex_range_type Vertices () const
cell_range_type range (tpC) const
cell_range_type cell_range () const
cell_range_type Cells () const
const grid_type & TheGrid () const
cell_handle handle (const Cell &C) const
vertex_handle handle (const Vertex &V) const


Detailed Description

template<class Grid>
class enumerated_subrange< Grid >

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

This class has value-semantics, i.e. really stores the enumerated sequence.

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 at construction time, for example by using ConstructSubrange.

Todo:
Edges work correctly only for 2D.

Definition at line 515 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