casa
$Rev:20696$
|
AIPS++ Vector iterator. More...
#include <VectorSTLIterator.h>
AIPS++ Vector iterator.
This class creates a random access STL iterator for an aips++ 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> casa::VectorSTLIterator< T >::const_iterator |
Definition at line 73 of file VectorSTLIterator.h.
typedef const value_type* casa::VectorSTLIterator< T >::const_pointer |
Definition at line 71 of file VectorSTLIterator.h.
typedef const value_type& casa::VectorSTLIterator< T >::const_reference |
Definition at line 75 of file VectorSTLIterator.h.
typedef ptrdiff_t casa::VectorSTLIterator< T >::difference_type |
Definition at line 77 of file VectorSTLIterator.h.
typedef VectorSTLIterator<T> casa::VectorSTLIterator< T >::iterator |
Definition at line 72 of file VectorSTLIterator.h.
typedef value_type* casa::VectorSTLIterator< T >::pointer |
Definition at line 70 of file VectorSTLIterator.h.
typedef value_type& casa::VectorSTLIterator< T >::reference |
Definition at line 74 of file VectorSTLIterator.h.
typedef std::size_t casa::VectorSTLIterator< T >::size_type |
Definition at line 76 of file VectorSTLIterator.h.
typedef T casa::VectorSTLIterator< T >::value_type |
Definition at line 69 of file VectorSTLIterator.h.
casa::VectorSTLIterator< T >::VectorSTLIterator | ( | const Vector< T > & | c | ) | [inline, explicit] |
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.
casa::VectorSTLIterator< T >::VectorSTLIterator | ( | ) | [inline] |
Definition at line 87 of file VectorSTLIterator.h.
casa::VectorSTLIterator< T >::VectorSTLIterator | ( | const typename Array< T >::IteratorSTL & | c | ) | [inline] |
Definition at line 89 of file VectorSTLIterator.h.
casa::VectorSTLIterator< T >::VectorSTLIterator | ( | const VectorSTLIterator< T > & | that | ) | [inline] |
Copy constructor.
Definition at line 96 of file VectorSTLIterator.h.
casa::VectorSTLIterator< T >::~VectorSTLIterator | ( | ) | [inline] |
Destructor.
Definition at line 115 of file VectorSTLIterator.h.
Bool casa::VectorSTLIterator< T >::operator!= | ( | const iterator | other | ) | const [inline] |
Definition at line 151 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
Bool casa::VectorSTLIterator< T >::operator!= | ( | const_pointer const | pos | ) | const [inline] |
Definition at line 157 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::pos().
reference casa::VectorSTLIterator< T >::operator* | ( | ) | [inline] |
Definition at line 121 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
const_reference casa::VectorSTLIterator< T >::operator* | ( | ) | const [inline] |
Definition at line 122 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
iterator casa::VectorSTLIterator< T >::operator+ | ( | difference_type | i | ) | const [inline] |
Definition at line 137 of file VectorSTLIterator.h.
const iterator& casa::VectorSTLIterator< T >::operator++ | ( | ) | [inline] |
Manipulation.
Definition at line 127 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator casa::VectorSTLIterator< T >::operator++ | ( | int | ) | [inline] |
Definition at line 128 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator& casa::VectorSTLIterator< T >::operator+= | ( | difference_type | i | ) | [inline] |
Definition at line 133 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator casa::VectorSTLIterator< T >::operator- | ( | difference_type | i | ) | const [inline] |
Definition at line 139 of file VectorSTLIterator.h.
difference_type casa::VectorSTLIterator< T >::operator- | ( | const VectorSTLIterator< T > & | x | ) | const [inline] |
Size related.
Definition at line 144 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator& casa::VectorSTLIterator< T >::operator-- | ( | ) | [inline] |
Definition at line 130 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator casa::VectorSTLIterator< T >::operator-- | ( | int | ) | [inline] |
Definition at line 131 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
iterator& casa::VectorSTLIterator< T >::operator-= | ( | difference_type | i | ) | [inline] |
Definition at line 135 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::step_p.
Bool casa::VectorSTLIterator< T >::operator< | ( | const iterator & | other | ) | const [inline] |
Definition at line 153 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
Bool casa::VectorSTLIterator< T >::operator< | ( | const_pointer const | pos | ) | const [inline] |
Definition at line 159 of file VectorSTLIterator.h.
VectorSTLIterator<T>& casa::VectorSTLIterator< T >::operator= | ( | const VectorSTLIterator< T > & | that | ) | [inline] |
Assignment.
Definition at line 103 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, casa::VectorSTLIterator< T >::start_p, and casa::VectorSTLIterator< T >::step_p.
Bool casa::VectorSTLIterator< T >::operator== | ( | const iterator & | other | ) | const [inline] |
Comparisons.
Definition at line 149 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
Bool casa::VectorSTLIterator< T >::operator== | ( | const_pointer const | pos | ) | const [inline] |
Definition at line 155 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p, and casa::VectorSTLIterator< T >::pos().
reference casa::VectorSTLIterator< T >::operator[] | ( | uInt | i | ) | [inline] |
Access.
Definition at line 118 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::start_p, and casa::VectorSTLIterator< T >::step_p.
const_reference casa::VectorSTLIterator< T >::operator[] | ( | uInt | i | ) | const [inline] |
Definition at line 119 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::start_p, and casa::VectorSTLIterator< T >::step_p.
pointer casa::VectorSTLIterator< T >::pos | ( | ) | const [inline] |
Definition at line 123 of file VectorSTLIterator.h.
References casa::VectorSTLIterator< T >::iter_p.
Referenced by casa::VectorSTLIterator< T >::operator!=(), and casa::VectorSTLIterator< T >::operator==().
pointer casa::VectorSTLIterator< T >::iter_p [protected] |
Current element pointer.
Definition at line 168 of file VectorSTLIterator.h.
Referenced by casa::VectorSTLIterator< T >::operator!=(), casa::VectorSTLIterator< T >::operator*(), casa::VectorSTLIterator< T >::operator++(), casa::VectorSTLIterator< T >::operator+=(), casa::VectorSTLIterator< T >::operator-(), casa::VectorSTLIterator< T >::operator--(), casa::VectorSTLIterator< T >::operator-=(), casa::VectorSTLIterator< T >::operator<(), casa::VectorSTLIterator< T >::operator=(), casa::VectorSTLIterator< T >::operator==(), and casa::VectorSTLIterator< T >::pos().
pointer const casa::VectorSTLIterator< T >::start_p [protected] |
Start (for random indexing)
Definition at line 160 of file VectorSTLIterator.h.
Referenced by casa::VectorSTLIterator< T >::operator=(), and casa::VectorSTLIterator< T >::operator[]().
difference_type casa::VectorSTLIterator< T >::step_p [protected] |
Distance between elements.
Definition at line 166 of file VectorSTLIterator.h.
Referenced by casa::VectorSTLIterator< T >::operator++(), casa::VectorSTLIterator< T >::operator+=(), casa::VectorSTLIterator< T >::operator-(), casa::VectorSTLIterator< T >::operator--(), casa::VectorSTLIterator< T >::operator-=(), casa::VectorSTLIterator< T >::operator=(), and casa::VectorSTLIterator< T >::operator[]().