dune-grid
3.0-git
dune
grid
io
file
dgfparser
blocks
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
9
#include <
dune/grid/io/file/dgfparser/blocks/basic.hh
>
10
11
namespace
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 > > ¶m,
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 > ¶m );
51
};
52
53
}
// end namespace dgf
54
55
}
// end namespace Dune
56
57
#endif
basic.hh
Dune
Include standard header files.
Definition
agrid.hh:60
Dune::dgf::BasicBlock
Definition
basic.hh:29
Dune::dgf::VertexBlock
Definition
vertex.hh:19
Dune::dgf::VertexBlock::get
int get(std ::vector< std ::vector< double > > &vtx, std ::vector< std ::vector< double > > ¶m, int &nofp)
Definition
vertex.cc:61
Dune::dgf::VertexBlock::offset
int offset() const
Definition
vertex.hh:40
Dune::dgf::VertexBlock::ok
bool ok() const
Definition
vertex.hh:35
Generated by
1.9.8