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/VectorMutable.cc

    r1027 r1038  
    7575  VectorMutable::iterator VectorMutable::begin(void)
    7676  {
    77     return iterator(*this, 0);
     77    if (vec_)
     78      return iterator(&(this->operator()(0)), vec_->stride);
     79    return iterator(NULL, 1);
    7880  }
    7981
     
    9092  VectorMutable::iterator VectorMutable::end(void)
    9193  {
    92     return iterator(*this, size());
     94    if (vec_)
     95      return iterator(&(this->operator()(0))+vec_->stride*size(),
     96                            const_vec_->stride);
     97    return iterator(NULL, 1);
    9398  }
    9499
Note: See TracChangeset for help on using the changeset viewer.