Changeset 3457


Ignore:
Timestamp:
Jan 12, 2016, 8:50:28 AM (7 years ago)
Author:
Peter
Message:

remove ws

File:
1 edited

Legend:

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

    r2375 r3457  
    4747     points to, so its \c reference_type is not \c DataWeight& but a
    4848     \c DataWeightProxy. Therefore \c DataWeightProxy<DataIterator,
    49      WeightIterator> must be a valid expression. 
     49     WeightIterator> must be a valid expression.
    5050
    5151     WeightedIterator inherits most its features from \c data_iterator
     
    6262    typename std::iterator_traits<DataIterator>::iterator_category,
    6363    DataWeightProxy<DataIterator, WeightIterator> >
    64    
     64
    6565  {
    6666  public:
     
    9191      : d_iter_(d), w_iter_(w)
    9292    {}
    93    
     93
    9494    /**
    9595       \return const reference to underlying data iterator
     
    107107    DataWeightProxy<DataIterator, WeightIterator> operator[](int n) const
    108108    {
    109       return DataWeightProxy<DataIterator, WeightIterator>(d_iter_+n, 
    110                                                            w_iter_+n); 
    111     }     
    112    
     109      return DataWeightProxy<DataIterator, WeightIterator>(d_iter_+n,
     110                                                           w_iter_+n);
     111    }
     112
    113113
    114114    /**
    115        \brief Conversion constructor. 
    116        
     115       \brief Conversion constructor.
     116
    117117       Create a WeightIterator<Base> from a
    118118       WeightIterator<B2>. Possible if B2 is convertible to a
     
    132132    DataIterator d_iter_;
    133133    WeightIterator w_iter_;
    134    
     134
    135135    void advance(size_t n)
    136136    { std::advance(d_iter_, n); std::advance(w_iter_, n); }
    137137
    138138    void decrement(void) { --d_iter_; --w_iter_; }
    139    
    140     typename std::iterator_traits<DataIterator>::difference_type 
     139
     140    typename std::iterator_traits<DataIterator>::difference_type
    141141    distance_to(const WeightedIterator& other) const
    142142    { return std::distance(d_iter_, other.d_iter_); }
    143143
    144     utility::DataWeightProxy<DataIterator, WeightIterator> 
    145     dereference(void) const 
    146     { return DataWeightProxy<DataIterator, WeightIterator>(d_iter_, 
    147                                                            w_iter_); 
     144    utility::DataWeightProxy<DataIterator, WeightIterator>
     145    dereference(void) const
     146    { return DataWeightProxy<DataIterator, WeightIterator>(d_iter_,
     147                                                           w_iter_);
    148148    }
    149149
     
    163163   */
    164164  template<typename DataIterator, typename WeightIterator>
    165   WeightedIterator<DataIterator, WeightIterator> 
     165  WeightedIterator<DataIterator, WeightIterator>
    166166  weighted_iterator(DataIterator data, WeightIterator weight)
    167167  {
    168168    return WeightedIterator<DataIterator, WeightIterator>(data, weight);
    169169  }
    170  
     170
    171171}}} // of namespace utility, yat, and theplu
    172172
Note: See TracChangeset for help on using the changeset viewer.