28 #ifndef CASA_VECTORSTLITERATOR_2_H
29 #define CASA_VECTORSTLITERATOR_2_H
65 template <
typename T,
typename Alloc=std::allocator<T>>
67 :
public std::iterator<std::random_access_iterator_tag, T> {
83 :
start_p(const_cast<T*>(c.data())),
84 step_p (std::
max(ssize_t(1), c.steps()(0))),
85 iter_p (const_cast<T*>(c.data()))
91 step_p (std::
max(ssize_t(1), c.steps()(0))),
A 1-D Specialization of the Array class.
pointer iter_p
Current element pointer.
const iterator & operator++()
Manipulation.
LatticeExprNode max(const LatticeExprNode &left, const LatticeExprNode &right)
const_reference operator[](size_t i) const
iterator & operator-=(difference_type i)
iterator operator-(difference_type i) const
VectorSTLIterator(const typename Array< T, Alloc >::IteratorSTL &c)
iterator & operator+=(difference_type i)
iterator operator+(difference_type i) const
VectorSTLIterator(const Vector< T, Alloc > &c)
Constructors.
reference operator[](size_t i)
Access.
difference_type step_p
Distance between elements.
const value_type * const_pointer
pointer const start_p
Start (for random indexing)
Casacore Vector iterator.
ptrdiff_t difference_type
difference_type operator-(const VectorSTLIterator< T, Alloc > &x) const
Size related.
bool operator<(const iterator &other) const
const value_type & const_reference
bool operator==(const iterator &other) const
Comparisons.
const VectorSTLIterator< T > const_iterator
const_reference operator*() const
const Double c
Fundamental physical constants (SI units):
VectorSTLIterator< T > iterator
bool operator!=(const iterator other) const