57 template<
typename TA,
int item>
76 template<
typename TA,
int from,
int end>
84 static bool contains(
const Type& item);
96 typedef typename S::Type Type;
98 static bool contains(
const Type& item)
100 return !S::contains(item);
107 template<
class TI1,
class TI2,
typename TA=
typename TI1::Type>
111 static bool contains(
const TA& item);
114 template<
typename TA>
120 template<
typename TA>
126 template<
typename TA,
int i>
132 template<
typename TA,
int i>
133 inline std::ostream& operator<<(std::ostream& os,
const EnumItem<TA,i>&)
138 template<
typename TA,
int from,
int to>
139 inline bool EnumRange<TA,from,to>::contains(
const Type& item)
141 return from<=item && item<=to;
144 template<
typename TA,
int from,
int to>
145 inline std::ostream& operator<<(std::ostream& os,
const EnumRange<TA,from,to>&)
147 return os<<
"["<<from<<
" - "<<to<<
"]";
150 template<
class TI1,
class TI2,
typename TA>
151 inline bool Combine<TI1,TI2,TA>::contains(
const TA& item)
153 return TI1::contains(item) ||
157 template<
class TI1,
class TI2>
158 inline Combine<TI1,TI2,typename TI1::Type> combine([[maybe_unused]]
const TI1& set1,
159 [[maybe_unused]]
const TI2& set2)
161 return Combine<TI1,TI2,typename TI1::Type>();
164 template<
class TI1,
class TI2,
class T>
165 inline std::ostream& operator<<(std::ostream& os,
const Combine<TI1,TI2,T>&)
167 return os << TI1()<<
" "<<TI2();
A set containing everything.
Definition: enumset.hh:42
TA Type
The POD type the set holds.
Definition: enumset.hh:47
A set combining two other sets.
Definition: enumset.hh:109
An empty set.
Definition: enumset.hh:25
TA Type
The POD type the set holds.
Definition: enumset.hh:30
A set consisting only of one item.
Definition: enumset.hh:59
TA Type
The type the set holds.
Definition: enumset.hh:64
A set representing a range including the borders.
Definition: enumset.hh:78
TA Type
The type the set holds.
Definition: enumset.hh:83
The negation of a set. An item is contained in the set if and only if it is not contained in the nega...
Definition: enumset.hh:94
static bool contains(const Type &attribute)
Always returns true.
Definition: enumset.hh:121
static bool contains(const Type &attribute)
Always returns false.
Definition: enumset.hh:115
static bool contains(const Type &attribute)
Tests whether an item is in the set.
Definition: enumset.hh:127
Dune namespace.
Definition: alignedallocator.hh:11