36#ifndef STK_DENSEITERATORBASE_H
37#define STK_DENSEITERATORBASE_H
77template<
class Derived>
152 {
return it1.pos_ -
it2.pos_;}
Interface base class for all classes implementing the curious recursive template paradigm.
Derived & asDerived()
static cast : return a reference of this with a cast to the derived class.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
const int baseIdx
base index of the containers created in STK++.
The namespace STK is the main domain space of the Statistical ToolKit project.
IteratorBase is a base class for all iterators on dense arrays/matrix/vector/expressions.
friend DenseIteratorBase operator-(DenseIteratorBase const &it, int n)
Subtract n positions to current position.
Derived & operator+=(Index n)
add n positions to current position
friend bool operator>(DenseIteratorBase const &lhs, DenseIteratorBase const &rhs)
comparing two iterators (only position is compared !)
hidden::IteratorTraits< Derived >::Index Index
Derived & operator--(int)
previous position
hidden::IteratorTraits< Derived >::pointer pointer
friend DenseIteratorBase operator-(int n, DenseIteratorBase const &it)
friend DenseIteratorBase operator+(DenseIteratorBase const &it, int n)
add n positions to current position
hidden::IteratorTraits< Derived >::reference reference
Derived & operator++()
next position
friend bool operator<=(DenseIteratorBase const &lhs, DenseIteratorBase const &rhs)
comparing two iterators (only position is compared !)
Derived & operator++(int junk)
next position
~DenseIteratorBase()
destructor
DenseIteratorBase()
default constructor
Index pos_
Current position.
DenseIteratorBase(DenseIteratorBase const &it)
copy constructor.
friend bool operator>=(DenseIteratorBase const &lhs, DenseIteratorBase const &rhs)
comparing two iterators (only position is compared !)
Derived & operator--()
previous position
Derived & operator-=(Index n)
Subtract n positions to current position.
friend void swap(DenseIteratorBase &lhs, DenseIteratorBase &rhs)
swap two iterators (only position is swaped)
friend DenseIteratorBase operator+(int n, DenseIteratorBase const &it)
Subtract n positions to current position.
hidden::IteratorTraits< Derived >::value_type value_type
friend difference_type operator-(DenseIteratorBase it1, DenseIteratorBase it2)
difference of two positions
hidden::IteratorTraits< Derived >::iterator_category iterator_category
friend bool operator<(DenseIteratorBase const &lhs, DenseIteratorBase const &rhs)
comparing two iterators (only position is compared !)
DenseIteratorBase(Index pos)
constructor with specified position
hidden::IteratorTraits< Derived >::difference_type difference_type