Ignore:
Timestamp:
Feb 22, 2008, 10:31:22 PM (14 years ago)
Author:
Peter
Message:

fixing Doxygen parsing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/iterator_traits.h

    r1115 r1125  
    4444
    4545  /**
    46       All iterators default to unweighted type
     46      All iterators default to unweighted type. If you want your
     47      iterator to behave as weighted, you need to provide a
     48      specialization.
    4749
    4850      \see Iterator and StrideIterator
     
    5052  template <class T>
    5153  struct weighted_iterator_traits {
     54  /**
     55      All iterators default to unweighted type
     56  */
    5257    typedef unweighted_iterator_tag type;
    5358  };
     
    6065  template <class T1, class T2>
    6166  struct unweighted_type_and {
     67    /**
     68       default return weighted_iterator_tag
     69     */
    6270    typedef weighted_iterator_tag type;
    6371  };
     
    6977  template <>
    7078  struct unweighted_type_and<unweighted_iterator_tag, unweighted_iterator_tag> {
     79    /**
     80       return unweighted_iterator_tag
     81     */
    7182    typedef unweighted_iterator_tag type;
    7283  };
     
    7990  template <class T1, class T2>
    8091  struct weighted_if_any2 {
     92  private:
    8193    typedef typename weighted_iterator_traits<T1>::type w_type1;
    8294    typedef typename weighted_iterator_traits<T2>::type w_type2;
     95  public:
     96    /// return unweighted if both are unweighted
    8397    typedef typename unweighted_type_and<w_type1, w_type2>::type type;
    8498  };
     
    89103  template <class T1, class T2, class T3>
    90104  struct weighted_if_any3 {
     105  private:
    91106    typedef typename weighted_if_any2<T1, T2>::type tmp;
    92107    typedef typename weighted_iterator_traits<T3>::type w_type3;
     108  public:
     109    /// return unweighted if all are unweighted
    93110    typedef typename unweighted_type_and<tmp, w_type3>::type type;
    94111  };
Note: See TracChangeset for help on using the changeset viewer.