59 template<
typename TA,
int item>
78 template<
typename TA,
int from,
int end>
98 typedef typename S::Type
Type;
102 return !S::contains(item);
109 template<
class TI1,
class TI2,
typename TA=
typename TI1::Type>
113 static bool contains(
const TA& item);
116 template<
typename TA>
122 template<
typename TA>
128 template<
typename TA,
int i>
134 template<
typename TA,
int i>
140 template<
typename TA,
int from,
int to>
143 return from<=item && item<=to;
146 template<
typename TA,
int from,
int to>
149 return os<<
"["<<from<<
" - "<<to<<
"]";
152 template<
class TI1,
class TI2,
typename TA>
155 return TI1::contains(item) ||
159 template<
class TI1,
class TI2>
161 [[maybe_unused]]
const TI2& set2)
166 template<
class TI1,
class TI2,
class T>
169 return os << TI1()<<
" "<<TI2();
static bool contains(const Type &attribute)
Always returns true.
Definition enumset.hh:123
static bool contains(const Type &item)
Definition enumset.hh:141
static bool contains(const TA &item)
Definition enumset.hh:153
static bool contains(const Type &attribute)
Always returns false.
Definition enumset.hh:117
static bool contains(const Type &attribute)
Tests whether an item is in the set.
Definition enumset.hh:129
Combine< TI1, TI2, typename TI1::Type > combine(const TI1 &set1, const TI2 &set2)
Definition enumset.hh:160
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
Definition bigunsignedint.hh:278
Dune namespace.
Definition alignedallocator.hh:13
An empty set.
Definition enumset.hh:27
TA Type
The POD type the set holds.
Definition enumset.hh:32
A set containing everything.
Definition enumset.hh:44
TA Type
The POD type the set holds.
Definition enumset.hh:49
A set consisting only of one item.
Definition enumset.hh:61
TA Type
The type the set holds.
Definition enumset.hh:66
A set representing a range including the borders.
Definition enumset.hh:80
TA Type
The type the set holds.
Definition enumset.hh:85
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:96
S::Type Type
Definition enumset.hh:98
static bool contains(const Type &item)
Definition enumset.hh:100
A set combining two other sets.
Definition enumset.hh:111