Dune::Copasi
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
bit_flags.hh File Reference
#include <dune-copasi-config.hh>
#include <bitset>
#include <climits>
Include dependency graph for bit_flags.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Dune::Copasi::is_bitflags< T >
 Bitflag indicator. More...
 
class  Dune::Copasi::BitFlags< Enum >
 Bit flags for enumerators. More...
 

Namespaces

namespace  Dune
 
namespace  Dune::Copasi
 

Functions

template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, BitFlags< Enum > > Dune::Copasi::operator| (Enum lhs, Enum rhs)
 Bitwise or between two enums that may be bitflags.
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, BitFlags< Enum > > Dune::Copasi::operator& (Enum lhs, Enum rhs)
 Bitwise and between two enums that may be bitflags.
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, BitFlags< Enum > > Dune::Copasi::operator^ (Enum lhs, Enum rhs)
 Bitwise xor between two enums that may be bitflags.
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, boolDune::Copasi::operator== (Enum lhs, Enum rhs)
 Return true if all flags of both enums (allowed to be bitflags) are equal.
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, boolDune::Copasi::operator!= (Enum lhs, Enum rhs)
 

Variables

template<class T >
constexpr bool Dune::Copasi::is_bitflags_v = is_bitflags<T>::value
 Alias for Bitflag indicator.