Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / sat / LookupAttrTools.h
index 9102add..800e9c2 100644 (file)
@@ -24,11 +24,11 @@ namespace zypp
 
     ///////////////////////////////////////////////////////////////////
     //
-    // CLASS NAME : LookupAttr::TransformIterator
+    // CLASS NAME : LookupAttr::transformIterator
     //
-    /** TransformIterator returning an \ref iterator value of type \c TResult.
+    /** TransformIterator returning an \ref iterator value of type \c _ResultT.
      *
-     * The underlying LookupAttr::iterators value is retrieved \ref asType<TAttr>
+     * The underlying LookupAttr::iterators value is retrieved \ref asType<_AttrT>
      * and the returned \ref ResultT is constructed fron that value.
      *
      * \code
@@ -40,7 +40,7 @@ namespace zypp
      *       {}
      *
      *     public:
-     *       typedef sat::LookupAttr::TransformIterator<PackageKeyword,IdString> iterator;
+     *       typedef sat::LookupAttr::transformIterator<PackageKeyword,IdString> iterator;
      *
      *       iterator begin() const { return iterator( _q.begin() ); }
      *       iterator end() const   { return iterator( _q.end() ); }
@@ -52,21 +52,21 @@ namespace zypp
      *
      * \see \ref ArrayAttr.
      */
-    template<class TResult, class TAttr>
-    class LookupAttr::TransformIterator : public boost::iterator_adaptor<
-          TransformIterator<TResult,TAttr> // Derived
+    template<class _ResultT, class _AttrT>
+    class LookupAttr::transformIterator : public boost::iterator_adaptor<
+          transformIterator<_ResultT,_AttrT> // Derived
           , LookupAttr::iterator         // Base
-          , TResult                      // Value
+          , _ResultT                     // Value
           , boost::forward_traversal_tag // CategoryOrTraversal
-          , TResult                      // Reference
+          , _ResultT                     // Reference
     >
     {
       public:
-        TransformIterator()
+        transformIterator()
         {}
 
         explicit
-        TransformIterator( const LookupAttr::iterator & val_r )
+        transformIterator( const LookupAttr::iterator & val_r )
         { this->base_reference() = val_r; }
 
       public:
@@ -116,25 +116,25 @@ namespace zypp
       private:
         friend class boost::iterator_core_access;
 
-        TResult dereference() const
+        _ResultT dereference() const
         {
           const LookupAttr::iterator lit( this->base_reference() );
-          return TResult( lit.asType<TAttr>() );
+          return _ResultT( lit.asType<_AttrT>() );
         }
     };
     ///////////////////////////////////////////////////////////////////
 
-    template<class TResult, class TAttr>
+    template<class _ResultT, class _AttrT>
     class ArrayAttr;
 
-    template<class TResult, class TAttr>
-    std::ostream & operator<<( std::ostream & str, const ArrayAttr<TResult,TAttr> & obj );
+    template<class _ResultT, class _AttrT>
+    std::ostream & operator<<( std::ostream & str, const ArrayAttr<_ResultT,_AttrT> & obj );
 
     ///////////////////////////////////////////////////////////////////
     //
     // CLASS NAME : ArrayAttr
     //
-    /** \ref LookupAttr::TransformIterator based container to retrieve list attributes.
+    /** \ref LookupAttr::transformIterator based container to retrieve list attributes.
      *
      * You may pass \ref LookupAttr::REPO_ATTR as \ref LookupAttr::Location argument,
      * to lookup attributes associated with the \ref Repository as a whole
@@ -150,10 +150,10 @@ namespace zypp
      *
      * \todo Maybe add some way to unify the result.
      */
-    template<class TResult, class TAttr>
+    template<class _ResultT, class _AttrT>
     class ArrayAttr
     {
-      friend std::ostream & operator<< <TResult,TAttr>( std::ostream & str, const ArrayAttr<TResult,TAttr> & obj );
+      friend std::ostream & operator<< <_ResultT,_AttrT>( std::ostream & str, const ArrayAttr<_ResultT,_AttrT> & obj );
 
       public:
         ArrayAttr()
@@ -172,7 +172,7 @@ namespace zypp
         {}
 
       public:
-        typedef LookupAttr::TransformIterator<TResult,TAttr> iterator;
+        typedef LookupAttr::transformIterator<_ResultT,_AttrT> iterator;
         typedef LookupAttr::size_type size_type;
 
         iterator begin() const
@@ -194,7 +194,7 @@ namespace zypp
 
       public:
 
-        iterator find( const TResult & key_r ) const
+        iterator find( const _ResultT & key_r ) const
         {
           for_( it, begin(), end() )
           {
@@ -210,8 +210,8 @@ namespace zypp
     ///////////////////////////////////////////////////////////////////
 
     /** \relates LookupAttr::iterator Stream output. */
-    template<class TResult, class TAttr>
-    inline std::ostream & operator<<( std::ostream & str, const ArrayAttr<TResult,TAttr> & obj )
+    template<class _ResultT, class _AttrT>
+    inline std::ostream & operator<<( std::ostream & str, const ArrayAttr<_ResultT,_AttrT> & obj )
     { return dumpOn( str, obj._q ); }
 
     /////////////////////////////////////////////////////////////////