dune-grid 3.0-git
vertex.hh
Go to the documentation of this file.
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
10
11namespace Dune
12{
13
14 namespace dgf
15 {
16
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
Include standard header files.
Definition agrid.hh:60
Definition basic.hh:29
Definition vertex.hh:19
int get(std ::vector< std ::vector< double > > &vtx, std ::vector< std ::vector< double > > &param, int &nofp)
Definition vertex.cc:61
int offset() const
Definition vertex.hh:40
bool ok() const
Definition vertex.hh:35