Ignore:
Timestamp:
Feb 10, 2008, 11:48:19 PM (14 years ago)
Author:
Peter
Message:

Iterators for KernelLookup? - refs #267

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/MatrixLookup.cc

    r1063 r1066  
    163163  MatrixLookup::const_iterator MatrixLookup::begin(void) const
    164164  {
    165     return const_iterator(normal_iter(*this, 0, 0), 1);
     165    return const_iterator(const_iterator::iterator_type(*this, 0, 0), 1);
    166166  }
    167167
     
    169169  MatrixLookup::const_iterator MatrixLookup::begin_column(size_t i) const
    170170  {
    171     return const_iterator(normal_iter(*this, 0, i),this->columns());
     171    return const_iterator(const_iterator::iterator_type(*this, 0, i),columns());
    172172  }
    173173
     
    175175  MatrixLookup::const_iterator MatrixLookup::begin_row(size_t i) const
    176176  {
    177     return const_iterator(normal_iter(*this, i, 0), 1);
     177    return const_iterator(const_iterator::iterator_type(*this, i, 0), 1);
    178178  }
    179179
     
    181181  MatrixLookup::const_iterator MatrixLookup::end(void) const
    182182  {
    183     return const_iterator(normal_iter(*this, this->rows(), 0), 1);
     183    return const_iterator(const_iterator::iterator_type(*this, rows(), 0), 1);
    184184  }
    185185
     
    187187  MatrixLookup::const_iterator MatrixLookup::end_column(size_t i) const
    188188  {
    189     return const_iterator(normal_iter(*this, this->rows(), i), this->columns());
     189    return const_iterator(const_iterator::iterator_type(*this, rows(), i),
     190                          columns());
    190191  }
    191192
     
    193194  MatrixLookup::const_iterator MatrixLookup::end_row(size_t i) const
    194195  {
    195     return const_iterator(normal_iter(*this, i+1, 0), 1);
     196    return const_iterator(const_iterator::iterator_type(*this, i+1, 0), 1);
    196197  }
    197198
Note: See TracChangeset for help on using the changeset viewer.