Dune::Copasi 2.1.0-git79717215+dune.gitlab.629933
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages Concepts
Classes | Namespaces | Functions | Variables
bit_flags.hh File Reference
#include <dune-copasi-config.hh>
#include <bitset>
#include <climits>

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. More...
 
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. More...
 
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. More...
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, bool > Dune::Copasi::operator== (Enum lhs, Enum rhs)
 Return true if all flags of both enums (allowed to be bitflags) are equal. More...
 
template<class Enum >
constexpr std::enable_if_t< is_bitflags_v< Enum >, bool > Dune::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. More...