Go to the source code of this file.
|
| zypp |
| Easy-to use interface to the ZYPP dependency resolver.
|
|
| zypp::base |
|
|
template<typename TEnum > |
std::ostream & | zypp::base::operator<< (std::ostream &str, const Flags< TEnum > &obj) |
|
template<typename TEnum > |
std::ostream & | zypp::base::operator<< (std::ostream &str, const typename Flags< TEnum >::Enum &obj) |
|
◆ ZYPP_DECLARE_FLAGS
◆ ZYPP_DECLARE_OPERATORS_FOR_FLAGS
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS |
( |
|
Name | ) |
|
Value:inline constexpr
bool operator==( Name::Enum lhs, Name rhs ) {
return( rhs == lhs ); } \
inline constexpr
bool 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, 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 ); }
Definition at line 177 of file Flags.h.
◆ ZYPP_DECLARE_FLAGS_AND_OPERATORS
#define ZYPP_DECLARE_FLAGS_AND_OPERATORS |
( |
|
Name, |
|
|
|
Enum |
|
) |
| |
Value:
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
Definition at line 189 of file Flags.h.