Dune Core Modules (2.7.1)

vertex.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_DGF_VERTEXBLOCK_HH
4#define DUNE_DGF_VERTEXBLOCK_HH
5
6#include <iostream>
7#include <vector>
8
9#include <dune/grid/io/file/dgfparser/blocks/basic.hh>
10
11namespace Dune
12{
13
14 namespace dgf
15 {
16
17 class VertexBlock
18 : public BasicBlock
19 {
20 int dimvertex; // the dimension of the vertices (determined from DGF file)
21 int dimworld; // the dimension of the world (either dimvertex or given by user)
22 bool goodline; // active line describes a vertex
23 int vtxoffset;
24 int nofParam;
25
26 public:
27 // initialize vertex block
28 VertexBlock ( std :: istream &in, int &pdimworld );
29
30 int get ( std :: vector< std :: vector< double > > &vtx,
31 std :: vector< std :: vector< double > > &param,
32 int &nofp );
33
34 // some information
35 bool ok () const
36 {
37 return goodline;
38 }
39
40 int offset () const
41 {
42 return vtxoffset;
43 }
44
45 private:
46 // get dimworld
47 int getDimWorld ();
48
49 // get next vertex
50 bool next ( std :: vector< double > &point, std :: vector< double > &param );
51 };
52
53 } // end namespace dgf
54
55} // end namespace Dune
56
57#endif
Dune namespace.
Definition: alignedallocator.hh:14
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)