File kernel/src/utils/SiconosAlgebra/SiconosVectorIterator.hpp

Go to the source code of this file

Typedefs

typedef SiconosVectorIteratorTypeTpl<const SiconosVector, const double, double> SiconosVectorConstIteratorType

Specialization for const SiconosVector.

typedef SiconosVectorIteratorTypeTpl<SiconosVector, double, double&> SiconosVectorIteratorType

Specialization for non-const SiconosVector.

struct SiconosVectorConstIterator : public SiconosVectorIteratorTypeTpl<const SiconosVector, const double, double>

Public Functions

SiconosVectorConstIterator()
SiconosVectorConstIterator(SiconosVectorConstIteratorType &it)
SiconosVectorConstIterator(const SiconosVector &_v, size_t _p)
struct SiconosVectorIterator : public SiconosVectorIteratorTypeTpl<SiconosVector, double, double&>

Public Functions

SiconosVectorIterator()
SiconosVectorIterator(SiconosVectorIteratorType &it)
SiconosVectorIterator(SiconosVector &_v, size_t _p)
template <typename V, typename T, typename TRef>
struct SiconosVectorIteratorTypeTpl : public std::iterator<std::forward_iterator_tag, T>
#include <SiconosVectorIterator.hpp>

Iterator for SiconosVector covering both possible types.

Subclassed by SiconosVectorConstIterator, SiconosVectorIterator

Public Functions

SiconosVectorIteratorTypeTpl()
SiconosVectorIteratorTypeTpl(V &_v, size_t _p)
bool operator!=(const SiconosVectorIteratorTypeTpl &it)
TRef operator*()
SiconosVectorIteratorTypeTpl &operator++()
SiconosVectorIteratorTypeTpl operator++(int)
SiconosVectorIteratorTypeTpl &operator=(const SiconosVectorIteratorTypeTpl &it)
bool operator==(const SiconosVectorIteratorTypeTpl &it)

Public Members

size_t p
V *v