X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2Fbase%2FSetRelationMixin.h;h=28c8811f214b98bf1a547bba9d3e2090d8cbd397;hb=42b5d038414cf4a4a050e816b471f890b24e8032;hp=7ca547962a0d701077556f97a5b2fe8e9ea62e38;hpb=b61a0ff7e76a542a874714e4ee7753db48f9f8aa;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/base/SetRelationMixin.h b/zypp/base/SetRelationMixin.h index 7ca5479..28c8811 100644 --- a/zypp/base/SetRelationMixin.h +++ b/zypp/base/SetRelationMixin.h @@ -21,11 +21,11 @@ namespace zypp { /////////////////////////////////////////////////////////////////// - /// \class _SetCompareDef + /// \class ESetCompareDef /// \brief Result of set comparison (use like 'enum class \ref SetCompare') /// This is the type a \c compare function should return. /////////////////////////////////////////////////////////////////// - struct _SetCompareDef { + struct ESetCompareDef { enum Enum { uncomparable = 0, ///< "{?}" equal = (1<<0), ///< "{=}" @@ -36,8 +36,8 @@ namespace zypp /** String representantion */ static const std::string & asString( Enum val_r ); }; - /** \relates _SetCompareDef typedef 'enum class SetCompare' */ - typedef base::EnumClass<_SetCompareDef> SetCompare; + /** \relates ESetCompareDef typedef 'enum class SetCompare' */ + typedef base::EnumClass SetCompare; /** \relates SetCompare Stream output */ inline std::ostream & operator<<( std::ostream & str, const SetCompare::Enum & obj ) @@ -47,14 +47,14 @@ namespace zypp { return str << obj.asEnum(); } /////////////////////////////////////////////////////////////////// - /// \class _SetRelationDef + /// \class ESetRelationDef /// \brief Set Relation based on \ref SetCompare (use like 'enum class \ref SetRelation') /// Comparison (\c== \c!=) between \ref SetRelation and \ref SetCompare /// is defined to let \c SetRelation::subset match \c SetCompare::equal /// as well as \c SetCompare::properSubset. Accordingly \c SetRelation::subset /// matches \c SetCompare::equal as well as \c SetCompare::properSuperset. /////////////////////////////////////////////////////////////////// - struct _SetRelationDef { + struct ESetRelationDef { enum Enum { uncomparable = SetCompare::uncomparable, ///< "{??}" equal = SetCompare::equal, ///< "{==}" @@ -67,8 +67,8 @@ namespace zypp /** String representantion */ static const std::string & asString( Enum val_r ); }; - /** \relates _SetRelationDef typedef 'enum class SetRelation' */ - typedef base::EnumClass<_SetRelationDef> SetRelation; + /** \relates ESetRelationDef typedef 'enum class SetRelation' */ + typedef base::EnumClass SetRelation; /** \relates SetRelation Stream output */ inline std::ostream & operator<<( std::ostream & str, const SetRelation::Enum & obj ) @@ -131,7 +131,7 @@ namespace zypp namespace base { /////////////////////////////////////////////////////////////////// - /// \class SetRelationMixin + /// \class SetRelationMixin /// \brief Provide set relation methods based on Derived::setRelationMixinCompare /// A class using this mixin must provide: /// \code