Changeset 1528 for trunk/yat/utility


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

refs #444 - started using boost::permutation_iterator for vector iterators from MatrixLookup? and also removed stride layer for const_iterator (stride was always 1).

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Index.cc

    r1487 r1528  
    6565
    6666
     67  Index::const_iterator Index::begin(void) const
     68  {
     69    return index_->begin();
     70  }
     71
     72
     73  Index::const_iterator Index::end(void) const
     74  {
     75    return index_->end();
     76  }
     77
     78
    6779  size_t Index::size(void) const
    6880  {
  • trunk/yat/utility/Index.h

    r1487 r1528  
    4040  public:
    4141    /**
     42       Read only iterator
     43
     44       \since New in yat 0.5
     45     */
     46    typedef std::vector<size_t>::const_iterator const_iterator;
     47
     48    /**
    4249       Creates an empty Index
    4350     */
     
    6875
    6976    /**
     77       \return iterator pointing to first element of Index
     78
     79       \since New in yat 0.5
     80     */
     81    const_iterator begin(void) const;
     82
     83    /**
     84       \return iterator pointing to element one passed last Index
     85
     86       \since New in yat 0.5
     87     */
     88    const_iterator end(void) const;
     89
     90    /**
    7091       \brief access operator
    7192    */
Note: See TracChangeset for help on using the changeset viewer.