Dune Core Modules (2.5.2)

indices.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4#ifndef DUNE_COMMON_INDICES_HH
5#define DUNE_COMMON_INDICES_HH
6
7#include <cstddef>
8#include <type_traits>
9
10
11namespace Dune
12{
25 template<std::size_t i>
26 using index_constant = std::integral_constant<std::size_t, i>;
27
28
29
46 namespace Indices
47 {
49 constexpr index_constant< 0> _0 = {};
50
52 constexpr index_constant< 1> _1 = {};
53
55 constexpr index_constant< 2> _2 = {};
56
58 constexpr index_constant< 3> _3 = {};
59
61 constexpr index_constant< 4> _4 = {};
62
64 constexpr index_constant< 5> _5 = {};
65
67 constexpr index_constant< 6> _6 = {};
68
70 constexpr index_constant< 7> _7 = {};
71
73 constexpr index_constant< 8> _8 = {};
74
76 constexpr index_constant< 9> _9 = {};
77
79 constexpr index_constant<10> _10 = {};
80
82 constexpr index_constant<11> _11 = {};
83
85 constexpr index_constant<12> _12 = {};
86
88 constexpr index_constant<13> _13 = {};
89
91 constexpr index_constant<14> _14 = {};
92
94 constexpr index_constant<15> _15 = {};
95
97 constexpr index_constant<16> _16 = {};
98
100 constexpr index_constant<17> _17 = {};
101
103 constexpr index_constant<18> _18 = {};
104
106 constexpr index_constant<19> _19 = {};
107
108 } // namespace Indices
109
110} //namespace Dune
111
112#endif // DUNE_COMMON_INDICES_HH
constexpr index_constant< 16 > _16
Compile time index with value 16.
Definition: indices.hh:97
constexpr index_constant< 15 > _15
Compile time index with value 15.
Definition: indices.hh:94
constexpr index_constant< 8 > _8
Compile time index with value 8.
Definition: indices.hh:73
constexpr index_constant< 7 > _7
Compile time index with value 7.
Definition: indices.hh:70
constexpr index_constant< 0 > _0
Compile time index with value 0.
Definition: indices.hh:49
constexpr index_constant< 9 > _9
Compile time index with value 9.
Definition: indices.hh:76
constexpr index_constant< 14 > _14
Compile time index with value 14.
Definition: indices.hh:91
constexpr index_constant< 1 > _1
Compile time index with value 1.
Definition: indices.hh:52
constexpr index_constant< 3 > _3
Compile time index with value 3.
Definition: indices.hh:58
constexpr index_constant< 12 > _12
Compile time index with value 12.
Definition: indices.hh:85
constexpr index_constant< 11 > _11
Compile time index with value 11.
Definition: indices.hh:82
constexpr index_constant< 18 > _18
Compile time index with value 18.
Definition: indices.hh:103
constexpr index_constant< 13 > _13
Compile time index with value 13.
Definition: indices.hh:88
constexpr index_constant< 5 > _5
Compile time index with value 5.
Definition: indices.hh:64
constexpr index_constant< 17 > _17
Compile time index with value 17.
Definition: indices.hh:100
constexpr index_constant< 10 > _10
Compile time index with value 10.
Definition: indices.hh:79
constexpr index_constant< 2 > _2
Compile time index with value 2.
Definition: indices.hh:55
std::integral_constant< std::size_t, i > index_constant
An index constant with value i.
Definition: indices.hh:26
constexpr index_constant< 19 > _19
Compile time index with value 19.
Definition: indices.hh:106
constexpr index_constant< 6 > _6
Compile time index with value 6.
Definition: indices.hh:67
constexpr index_constant< 4 > _4
Compile time index with value 4.
Definition: indices.hh:61
Dune namespace.
Definition: alignment.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)