libzypp  14.48.5
Flags.h File Reference
#include "zypp/base/String.h"
Include dependency graph for Flags.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zypp::base::Flags< _Enum >
 A type-safe way of storing OR-combinations of enum values (like QTs QFlags). More...
 

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::base
 

Macros

#define ZYPP_DECLARE_FLAGS(Name, Enum)   typedef zypp::base::Flags<Enum> Name
 
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
 
#define ZYPP_DECLARE_FLAGS_AND_OPERATORS(Name, Enum)
 

Functions

template<typename Enum >
std::ostream & zypp::base::operator<< (std::ostream &str, const Flags< Enum > &obj)
 

Macro Definition Documentation

#define ZYPP_DECLARE_FLAGS (   Name,
  Enum 
)    typedef zypp::base::Flags<Enum> Name

Definition at line 115 of file Flags.h.

#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS (   Name)
Value:
inline constexpr Name operator&( Name::Enum lhs, Name::Enum rhs ) { return Name( lhs ) & rhs; } \
inline constexpr Name operator&( Name::Enum lhs, Name rhs ) { return rhs & lhs; } \
inline constexpr Name operator|( Name::Enum lhs, Name::Enum rhs ) { return Name( lhs ) | rhs; } \
inline constexpr Name operator|( Name::Enum lhs, Name rhs ) { return rhs | lhs; } \
inline constexpr Name operator^( Name::Enum lhs, Name::Enum rhs ) { return Name( lhs ) ^ rhs; } \
inline constexpr Name operator^( Name::Enum lhs, Name rhs ) { return rhs ^ lhs; } \
inline constexpr Name operator~( Name::Enum lhs ) { return ~Name( lhs ); }
BitField< _IntT > operator^(const BitField< _IntT > &lhs, const BitField< _IntT > &rhs)
Definition: Bit.h:325
Match operator|(const Match &lhs, const Match &rhs)
Definition: StrMatcher.h:224
BitField< _IntT > operator&(const BitField< _IntT > &lhs, const BitField< _IntT > &rhs)
Definition: Bit.h:315

Definition at line 118 of file Flags.h.

#define ZYPP_DECLARE_FLAGS_AND_OPERATORS (   Name,
  Enum 
)
Value:
ZYPP_DECLARE_FLAGS(Name,Enum); \
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
Definition: Flags.h:118
#define ZYPP_DECLARE_FLAGS(Name, Enum)
Definition: Flags.h:115

Definition at line 128 of file Flags.h.