casacore
|
Casacore Vector iterator. More...
#include <VectorSTLIterator.h>
Public Types | |
typedef T | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef VectorSTLIterator< T > | iterator |
typedef const VectorSTLIterator< T > | const_iterator |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef std::size_t | size_type |
typedef ptrdiff_t | difference_type |
Protected Attributes | |
pointer const | start_p |
Start (for random indexing) More... | |
difference_type | step_p |
Distance between elements. More... | |
pointer | iter_p |
Current element pointer. More... | |
Casacore Vector iterator.
This class creates a random access STL iterator for an Casacore Vector. All the STL functionality is present (or if something missing can be easily added).
The following comments hold:
Vector
(non-STL) It is the same as using Vector.begin()
Vector.data()
is a fully functional STL iterator already. Vector::iterator()
rather than VectorSTLiterator
Array
classes: <class T, bool isCont=true>
. The default is contiguous, since creation is contiguous. In that case correct iterators for e.g. contiguous arrays are supplied automatically. ->
operator Definition at line 66 of file VectorSTLIterator.h.
typedef const VectorSTLIterator<T> casacore::VectorSTLIterator< T, Alloc >::const_iterator |
Definition at line 73 of file VectorSTLIterator.h.
typedef const value_type* casacore::VectorSTLIterator< T, Alloc >::const_pointer |
Definition at line 71 of file VectorSTLIterator.h.
typedef const value_type& casacore::VectorSTLIterator< T, Alloc >::const_reference |
Definition at line 75 of file VectorSTLIterator.h.
typedef ptrdiff_t casacore::VectorSTLIterator< T, Alloc >::difference_type |
Definition at line 77 of file VectorSTLIterator.h.
typedef VectorSTLIterator<T> casacore::VectorSTLIterator< T, Alloc >::iterator |
Definition at line 72 of file VectorSTLIterator.h.
typedef value_type* casacore::VectorSTLIterator< T, Alloc >::pointer |
Definition at line 70 of file VectorSTLIterator.h.
typedef value_type& casacore::VectorSTLIterator< T, Alloc >::reference |
Definition at line 74 of file VectorSTLIterator.h.
typedef std::size_t casacore::VectorSTLIterator< T, Alloc >::size_type |
Definition at line 76 of file VectorSTLIterator.h.
typedef T casacore::VectorSTLIterator< T, Alloc >::value_type |
Definition at line 69 of file VectorSTLIterator.h.
|
inlineexplicit |
Constructors.
The iterator constructor from a Vector
is the same as if created from Vector.begin()
. Copy constructor and assignment can be the default ones.
Definition at line 82 of file VectorSTLIterator.h.
|
inline |
Definition at line 87 of file VectorSTLIterator.h.
|
inline |
Definition at line 89 of file VectorSTLIterator.h.
|
inline |
Definition at line 130 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
|
inline |
Definition at line 136 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::pos().
|
inline |
Definition at line 100 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
|
inline |
Definition at line 101 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
|
inline |
Definition at line 116 of file VectorSTLIterator.h.
|
inline |
Manipulation.
Definition at line 106 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 107 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 112 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 118 of file VectorSTLIterator.h.
|
inline |
Size related.
Definition at line 123 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 109 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 110 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 114 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 132 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
|
inline |
Definition at line 138 of file VectorSTLIterator.h.
|
inline |
Comparisons.
Definition at line 128 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
|
inline |
Definition at line 134 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p, and casacore::VectorSTLIterator< T, Alloc >::pos().
|
inline |
Access.
Definition at line 97 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::start_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 98 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::start_p, and casacore::VectorSTLIterator< T, Alloc >::step_p.
|
inline |
Definition at line 102 of file VectorSTLIterator.h.
References casacore::VectorSTLIterator< T, Alloc >::iter_p.
Referenced by casacore::VectorSTLIterator< T, Alloc >::operator!=(), and casacore::VectorSTLIterator< T, Alloc >::operator==().
|
protected |
Current element pointer.
Definition at line 147 of file VectorSTLIterator.h.
Referenced by casacore::VectorSTLIterator< T, Alloc >::operator!=(), casacore::VectorSTLIterator< T, Alloc >::operator*(), casacore::VectorSTLIterator< T, Alloc >::operator++(), casacore::VectorSTLIterator< T, Alloc >::operator+=(), casacore::VectorSTLIterator< T, Alloc >::operator-(), casacore::VectorSTLIterator< T, Alloc >::operator--(), casacore::VectorSTLIterator< T, Alloc >::operator-=(), casacore::VectorSTLIterator< T, Alloc >::operator<(), casacore::VectorSTLIterator< T, Alloc >::operator==(), and casacore::VectorSTLIterator< T, Alloc >::pos().
|
protected |
Start (for random indexing)
Definition at line 139 of file VectorSTLIterator.h.
Referenced by casacore::VectorSTLIterator< T, Alloc >::operator[]().
|
protected |
Distance between elements.
Definition at line 145 of file VectorSTLIterator.h.
Referenced by casacore::VectorSTLIterator< T, Alloc >::operator++(), casacore::VectorSTLIterator< T, Alloc >::operator+=(), casacore::VectorSTLIterator< T, Alloc >::operator-(), casacore::VectorSTLIterator< T, Alloc >::operator--(), casacore::VectorSTLIterator< T, Alloc >::operator-=(), and casacore::VectorSTLIterator< T, Alloc >::operator[]().