LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
A constant iterator returning always the same value. More...
#include "sparse_vector.h"
Public Member Functions | |
value_const_iterator () | |
Default constructor: use the default value. More... | |
value_const_iterator (value_type new_value) | |
Constructor: value that will be returned. More... | |
value_const_iterator (value_type new_value, difference_type offset) | |
Constructor: value to be returned and current iterator "position". More... | |
value_type | operator* () const |
Returns a copy of the stored value. More... | |
value_type | operator[] (difference_type) const |
Returns a copy of the stored value. More... | |
this_t & | operator++ () |
Increments the position of the iterator, returns the new position. More... | |
this_t | operator++ (int) |
Increments the position of the iterator, returns the old position. More... | |
this_t & | operator-- () |
Decrements the position of the iterator, returns the new position. More... | |
this_t | operator-- (int) |
Decrements the position of the iterator, returns the old position. More... | |
this_t & | operator+= (difference_type ofs) |
Increments the position of the iterator by the specified steps. More... | |
this_t & | operator-= (difference_type ofs) |
Decrements the position of the iterator by the specified steps. More... | |
this_t | operator+ (difference_type ofs) const |
Returns an iterator pointing ahead of this one by the specified steps. More... | |
this_t | operator- (difference_type ofs) const |
Returns an iterator pointing behind this one by the specified steps. More... | |
difference_type | operator- (const this_t &iter) const |
Returns the distance between this iterator and the other. More... | |
bool | operator== (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
bool | operator!= (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
bool | operator< (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
bool | operator<= (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
bool | operator> (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
bool | operator>= (const this_t &as) const |
Comparison operators: determined by the position pointed by the iterators. More... | |
Protected Attributes | |
difference_type | index {0} |
(arbitrary) position pointed by the iterator More... | |
value_type | value |
value to be returned when dereferencing More... | |
Private Types | |
typedef std::iterator< std::random_access_iterator_tag, T > | base_t |
base type More... | |
typedef value_const_iterator< T > | this_t |
alias for this type More... | |
A constant iterator returning always the same value.
T | type of the value returned by dereferenciation |
Definition at line 71 of file sparse_vector.h.
|
private |
base type
Definition at line 74 of file sparse_vector.h.
|
private |
alias for this type
Definition at line 75 of file sparse_vector.h.
|
inline |
Default constructor: use the default value.
Definition at line 83 of file sparse_vector.h.
|
inline |
Constructor: value that will be returned.
Definition at line 86 of file sparse_vector.h.
|
inline |
Constructor: value to be returned and current iterator "position".
Definition at line 89 of file sparse_vector.h.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 132 of file sparse_vector.h.
References lar::value_const_iterator< T >::index.
|
inline |
Returns a copy of the stored value.
Definition at line 93 of file sparse_vector.h.
References lar::const_value_box< T >::value.
|
inline |
Returns an iterator pointing ahead of this one by the specified steps.
Definition at line 117 of file sparse_vector.h.
References lar::const_value_box< T >::value.
|
inline |
Increments the position of the iterator, returns the new position.
Definition at line 99 of file sparse_vector.h.
|
inline |
Increments the position of the iterator, returns the old position.
Definition at line 102 of file sparse_vector.h.
|
inline |
Increments the position of the iterator by the specified steps.
Definition at line 111 of file sparse_vector.h.
|
inline |
Returns an iterator pointing behind this one by the specified steps.
Definition at line 121 of file sparse_vector.h.
References lar::const_value_box< T >::value.
|
inline |
Returns the distance between this iterator and the other.
Definition at line 126 of file sparse_vector.h.
References lar::value_const_iterator< T >::index, and geo::details::operator==().
|
inline |
Decrements the position of the iterator, returns the new position.
Definition at line 105 of file sparse_vector.h.
|
inline |
Decrements the position of the iterator, returns the old position.
Definition at line 108 of file sparse_vector.h.
|
inline |
Decrements the position of the iterator by the specified steps.
Definition at line 114 of file sparse_vector.h.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 134 of file sparse_vector.h.
References lar::value_const_iterator< T >::index.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 135 of file sparse_vector.h.
References lar::value_const_iterator< T >::index.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 131 of file sparse_vector.h.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 136 of file sparse_vector.h.
References lar::value_const_iterator< T >::index.
|
inline |
Comparison operators: determined by the position pointed by the iterators.
Definition at line 137 of file sparse_vector.h.
References lar::value_const_iterator< T >::index.
|
inline |
Returns a copy of the stored value.
Definition at line 96 of file sparse_vector.h.
References lar::const_value_box< T >::value.
|
protected |
(arbitrary) position pointed by the iterator
Definition at line 141 of file sparse_vector.h.
Referenced by lar::value_const_iterator< T >::operator!=(), lar::operator+(), lar::value_const_iterator< T >::operator-(), lar::value_const_iterator< T >::operator<(), lar::value_const_iterator< T >::operator<=(), lar::value_const_iterator< T >::operator>(), and lar::value_const_iterator< T >::operator>=().
|
protected |
value to be returned when dereferencing
Definition at line 142 of file sparse_vector.h.
Referenced by lar::operator+().