Commit 84f9204d authored by Janick Gerstenberger's avatar Janick Gerstenberger

rework flags again

parent 79431b47
......@@ -17,16 +17,8 @@ namespace Dune
// ----
struct Flags
class Flags
{
enum Enum : std::size_t {
empty = 0,
mixed = 1,
mixedfull = 2,
full = 3,
nan = 99
};
template<std::size_t Lower, std::size_t Upper>
struct Range
{
......@@ -41,6 +33,15 @@ namespace Dune
}
};
public:
enum Enum : std::size_t {
empty = 0,
mixed = 1,
mixedfull = 2,
full = 3,
nan = 99
};
using Empty = Range<empty, empty>;
using Mixed = Range<mixed, mixedfull>;
using Full = Range<full, full>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment