Go to the documentation of this file.
   10 #ifndef ECL_UTILITIES_FLAGS_HPP_ 
   11 #define ECL_UTILITIES_FLAGS_HPP_ 
   64 template<
typename Enum>
 
   86       if ((
value & flag) != 0)
 
   92         if ( ( flag == 0 ) && ( 
value == 0 ) ) {
 
  120       f.value = 
value & mask;
 
  131       f.value = 
value & flag;
 
  142       f.value = 
value | other.value;
 
  153       f.value = 
value | flag;
 
  164       f.value = 
value ^ other.value;
 
  175       f.value = 
value ^ flag;
 
  210       value = 
static_cast<int>(flag);
 
  
Flags< Enum > operator~() const
Flags< Enum > & operator=(const Flags< Enum > &other)
Flags< Enum > & operator&=(int mask)
bool testFlag(Enum flag) const
Flags< Enum > & operator|=(Flags< Enum > other)
Flags< Enum > operator|(Flags< Enum > other) const
Flags< Enum > operator^(Flags< Enum > other) const
Convenience class for organising boolean flags.
Embedded control libraries.
Flags< Enum > & operator^=(Flags< Enum > other)
Flags< Enum > operator&(int mask) const
ecl_utilities
Author(s): Daniel Stonier 
autogenerated on Wed Mar 2 2022 00:16:32