libzypp  13.10.6
Flags.h File Reference
#include "zypp/base/String.h"

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 114 of file Flags.h.

#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS (   Name)
Value:
inline Name operator&( Name::enum_type lhs, Name::enum_type rhs ) { return Name( lhs ) &= rhs; } \
inline Name operator&( Name::enum_type lhs, Name rhs ) { return rhs &= lhs; } \
inline Name operator|( Name::enum_type lhs, Name::enum_type rhs ) { return Name( lhs ) |= rhs; } \
inline Name operator|( Name::enum_type lhs, Name rhs ) { return rhs |= lhs; } \
inline Name operator^( Name::enum_type lhs, Name::enum_type rhs ) { return Name( lhs ) ^= rhs; } \
inline Name operator^( Name::enum_type lhs, Name rhs ) { return rhs ^= lhs; } \
inline Name operator~( Name::enum_type 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 117 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:117
#define ZYPP_DECLARE_FLAGS(Name, Enum)
Definition: Flags.h:114

Definition at line 127 of file Flags.h.