Access functor used by Math::VectorIteratorTraits to read mutable vector elements via Util::IndexedElementIterator.
More...
#include <VectorIterator.hpp>
template<typename E>
class CDPL::Math::VectorElementAccessor< E >
Access functor used by Math::VectorIteratorTraits to read mutable vector elements via Util::IndexedElementIterator.
- Template Parameters
-
| E | The vector expression type. |
◆ VectorElementAccessor()
Constructs the accessor referencing the (mutable) vector e.
- Parameters
-
◆ operator()()
Returns a mutable reference to the element at index i of the referenced vector.
- Parameters
-
| i | The zero-based element index. |
- Returns
- A mutable reference to the element.
◆ operator==()
Tells whether this accessor references the same vector as accessor.
- Parameters
-
| accessor | The other accessor. |
- Returns
true if both accessors reference the same vector, and false otherwise.
The documentation for this class was generated from the following file: