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