Changeset 3530


Ignore:
Timestamp:
Oct 11, 2016, 9:57:10 AM (7 years ago)
Author:
Peter
Message:

refs #803. use new iterator concept in AveragerPairWeighted?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AveragerPairWeighted.h

    r2571 r3530  
    151151     \brief adding a ranges of values to AveragerPairWeighted \a ap
    152152
     153     Type Requirement:
     154     - \c InputIterator1 models \ref concept_data_iterator
     155     - \c InputIterator1 is \single_pass_iterator
     156     - \c InputIterator2 models \ref concept_data_iterator
     157     - \c InputIterator2 is \single_pass_iterator
     158
    153159     \relates AveragerPairWeighted
    154160   */
     
    157163           InputIterator1 last1, InputIterator2 first2)
    158164  {
    159     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator1>));
    160     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator2>));
     165    BOOST_CONCEPT_ASSERT((utility::DataIteratorConcept<InputIterator1>));
     166    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator1>));
     167    BOOST_CONCEPT_ASSERT((utility::DataIteratorConcept<InputIterator2>));
     168    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator2>));
     169
    161170    utility::iterator_traits<InputIterator1> traits1;
    162171    utility::iterator_traits<InputIterator2> traits2;
     
    173182     Iterators must be unweighted.
    174183
     184     Type Requirement:
     185     - \c InputIterator1 models \single_pass_iterator
     186     - \c InputIterator1 models \readable_iterator
     187     - \c InputIterator1 is weighted
     188     - \c InputIterator2 models \single_pass_iterator
     189     - \c InputIterator2 models \readable_iterator
     190     - \c InputIterator2 is weighted
     191     - \c InputIterator3 models \single_pass_iterator
     192     - \c InputIterator3 models \readable_iterator
     193     - \c InputIterator3 is weighted
     194     - \c InputIterator4 models \single_pass_iterator
     195     - \c InputIterator4 models \readable_iterator
     196     - \c InputIterator4 is weighted
     197
    175198     \relates AveragerPairWeighted
    176199   */
    177200  template <typename InputIterator1, typename InputIterator2
    178201            , typename InputIterator3, typename InputIterator4>
    179   void add(AveragerPairWeighted& ap, InputIterator1 x, InputIterator1 xlast, 
     202  void add(AveragerPairWeighted& ap, InputIterator1 x, InputIterator1 xlast,
    180203           InputIterator2 y, InputIterator3 wx, InputIterator4 wy)
    181204  {
    182     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator1>));
    183     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator2>));
    184     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator3>));
    185     BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator4>));
     205    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<InputIterator1>));
     206    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator1>));
     207    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<InputIterator2>));
     208    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator2>));
     209    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<InputIterator3>));
     210    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator3>));
     211    BOOST_CONCEPT_ASSERT((boost_concepts::ReadableIterator<InputIterator4>));
     212    BOOST_CONCEPT_ASSERT((boost_concepts::SinglePassIterator<InputIterator4>));
     213
    186214    utility::check_iterator_is_unweighted(x);
    187215    utility::check_iterator_is_unweighted(y);
Note: See TracChangeset for help on using the changeset viewer.