Grids and grid rangesenumerated subrange TypeIstreamComplex2DFmt Type

IstreamComplex2DFmt Type

Declaration

class IstreamComplex2DFmt;

Description

The class IstreamComplex2DFmt is an adapter to the grid interface for a grid given by a sequential stream, for example a file, in the complex2d format. By using this class, it is possible to read an arbitrary grid from this format, without knowing its details.

Model of

Cell-Vertex Input Grid Range
Vertex Grid Geometry

Definition

Defined in complex2d-format-input.h

Public base classes
Members
New members

Member

Description
IstreamComplex2DFmt(istream&, int offset = 0) Constructor, offset gives the lowest vertex number used (usually 0 or 1).
coord_type const& coord(Vertex const& v) access to vertex coordinates.

Example
a_grid_type Agrid;
a_geom_type Ageom; // model of Mutable Grid Vertex Geometry
ifstream in("grid.complex2d");
IstreamComplex2DFmt SrcG(in); // Grid & geom combined

// (Agrid, Ageom) = (SrcG, SrcG)
Construct(Agrid, Ageom, SrcG, SrcG);
Known uses
Notes
See also

Guntram Berti


Grids and grid rangesenumerated subrange TypeIstreamComplex2DFmt Type