dune-grid
2.10
Loading...
Searching...
No Matches
dune
grid
io
file
dgfparser
blocks
vertex.hh
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4
// vi: set et ts=4 sw=2 sts=2:
5
#ifndef DUNE_DGF_VERTEXBLOCK_HH
6
#define DUNE_DGF_VERTEXBLOCK_HH
7
8
#include <iostream>
9
#include <vector>
10
11
#include <
dune/grid/io/file/dgfparser/blocks/basic.hh
>
12
13
namespace
Dune
14
{
15
16
namespace
dgf
17
{
18
19
class
VertexBlock
20
:
public
BasicBlock
21
{
22
int
dimvertex;
// the dimension of the vertices (determined from DGF file)
23
int
dimworld;
// the dimension of the world (either dimvertex or given by user)
24
bool
goodline;
// active line describes a vertex
25
int
vtxoffset;
26
int
nofParam;
27
28
public
:
29
// initialize vertex block
30
VertexBlock
( std :: istream &in,
int
&pdimworld );
31
32
int
get
( std :: vector< std :: vector< double > > &vtx,
33
std :: vector< std :: vector< double > > ¶m,
34
int
&nofp );
35
36
// some information
37
bool
ok
()
const
38
{
39
return
goodline;
40
}
41
42
int
offset
()
const
43
{
44
return
vtxoffset;
45
}
46
47
private
:
48
// get dimworld
49
int
getDimWorld ();
50
51
// get next vertex
52
bool
next ( std :: vector< double > &point, std :: vector< double > ¶m );
53
};
54
55
}
// end namespace dgf
56
57
}
// end namespace Dune
58
59
#endif
basic.hh
Dune
Include standard header files.
Definition
agrid.hh:60
Dune::dgf::BasicBlock
Definition
basic.hh:31
Dune::dgf::VertexBlock
Definition
vertex.hh:21
Dune::dgf::VertexBlock::get
int get(std ::vector< std ::vector< double > > &vtx, std ::vector< std ::vector< double > > ¶m, int &nofp)
Definition
vertex.cc:62
Dune::dgf::VertexBlock::offset
int offset() const
Definition
vertex.hh:42
Dune::dgf::VertexBlock::ok
bool ok() const
Definition
vertex.hh:37
Generated by
1.9.8