Changeset 1527 for trunk


Ignore:
Timestamp:
Sep 24, 2008, 3:52:28 PM (13 years ago)
Author:
Peter
Message:

first ci of WeightedIterator? (far from ready to fly) - refs #368

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/iterator_test.cc

    r1490 r1527  
    3434#include "yat/utility/VectorView.h"
    3535#include "yat/utility/VectorConstView.h"
     36#include "yat/utility/WeightedIterator.h"
    3637#include "yat/utility/WeightIterator.h"
    3738
     
    7576
    7677void test_stride_iterator(test::Suite& suite);
     78void test_weighted_iterator(test::Suite& suite);
    7779
    7880int main(int argc, char* argv[])
     
    8486  old_main(suite);
    8587  test_boost_util(suite);
     88  test_weighted_iterator(suite);
    8689  return suite.return_value();
    8790}
     
    402405    suite.err() << "cend-cbegin failed\n";
    403406}
     407
     408void test_weighted_iterator(test::Suite& suite)
     409{
     410  std::vector<double> vec(3,1);
     411  typedef std::vector<double>::iterator Iter;
     412  utility::WeightedIterator<Iter, Iter> iter(vec.begin(), vec.begin());
     413
     414  //test_trivial_iterator(iter, suite);
     415
     416}
  • trunk/yat/utility/Makefile.am

    r1500 r1527  
    4545  SVD.h TypeInfo.h utility.h Vector.h \
    4646  VectorBase.h VectorConstView.h VectorMutable.h VectorView.h \
    47   WeightIterator.h WeNNI.h yat_assert.h
     47  WeightedIterator.h WeightIterator.h WeNNI.h yat_assert.h
    4848
    4949extra_headersdir = $(include_utilitydir)
Note: See TracChangeset for help on using the changeset viewer.