dune-grid
2.6-git
dune
grid
io
file
dgfparser
blocks
dim.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_DIMBLOCK_HH
4
#define DUNE_DGF_DIMBLOCK_HH
5
6
#include <iostream>
7
8
#include <
dune/grid/io/file/dgfparser/blocks/basic.hh
>
9
10
11
namespace
Dune
12
{
13
14
namespace
dgf
15
{
16
class
DimBlock
:
public
BasicBlock
{
17
int
_dimworld;
// dimension of world
18
int
_dim;
// dimension of grid
19
public
:
20
const
static
char
*
ID
;
21
// initialize block and get dimension of world
22
DimBlock
( std :: istream &in );
23
// get dimension of world found in block
24
int
dim
() {
25
return
_dim;
26
}
27
int
dimworld
() {
28
return
_dimworld;
29
}
30
// some information
31
bool
ok
() {
32
return
true
;
33
}
34
};
35
36
}
// end namespace dgf
37
38
}
// end namespace Dune
39
40
#endif
Dune::dgf::DimBlock::dimworld
int dimworld()
Definition:
dim.hh:27
basic.hh
Dune::dgf::DimBlock::ID
const static char * ID
Definition:
dim.hh:20
Dune::dgf::DimBlock::dim
int dim()
Definition:
dim.hh:24
Dune::dgf::DimBlock::DimBlock
DimBlock(std ::istream &in)
Definition:
dim.cc:15
Dune::dgf::DimBlock::ok
bool ok()
Definition:
dim.hh:31
Dune::dgf::BasicBlock
Definition:
basic.hh:28
Dune::dgf::DimBlock
Definition:
dim.hh:16
Dune
Include standard header files.
Definition:
agrid.hh:58
Generated by
1.8.17