dune-geometry
2.3.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
geometry
genericgeometry
maximum.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_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
4
#define DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
5
6
#include <dune/common/forloop.hh>
7
8
namespace
Dune
9
{
10
11
namespace
GenericGeometry
12
{
13
14
// StaticMaximum
15
// -------------
16
17
template
<
class
A,
class
B >
18
struct
StaticMaximum
19
{
20
static
const
int
v
= (A::v > B::v ? A::v : B::v);
21
};
22
23
24
25
// Maximum
26
// -------
27
28
template
<
template
<
int
>
class
Value,
int
first,
int
last >
29
struct
Maximum
30
:
public
GenericForLoop< StaticMaximum, Value, first, last >
31
{};
32
33
}
34
35
}
36
37
#endif // DUNE_GEOMETRY_GENERICGEOMETRY_MAXIMUM_HH
Dune::GenericGeometry::StaticMaximum
Definition:
maximum.hh:18
Dune::GenericGeometry::StaticMaximum::v
static const int v
Definition:
maximum.hh:20
Dune::GenericGeometry::Maximum
Definition:
maximum.hh:29
Generated on Wed Apr 30 2014 22:33:41 for dune-geometry by
1.8.6