Ignore:
Timestamp:
Feb 5, 2008, 9:46:37 PM (14 years ago)
Author:
Peter
Message:

StrideIterator? - fixes ticket:303

File:
1 edited

Legend:

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

    r1027 r1038  
    5656  VectorBase::const_iterator VectorBase::begin(void) const
    5757  {
    58     return const_iterator(*this, 0);
     58    if (const_vec_)
     59      return const_iterator(&(this->operator()(0)), const_vec_->stride);
     60    return const_iterator(NULL, 1);
    5961  }
    6062
     
    6264  VectorBase::const_iterator VectorBase::end(void) const
    6365  {
    64     return const_iterator(*this, size());
     66    if (const_vec_)
     67      return const_iterator(&(this->operator()(0))+const_vec_->stride*size(),
     68                            const_vec_->stride);
     69    return const_iterator(NULL, 1);
    6570  }
    6671
Note: See TracChangeset for help on using the changeset viewer.