Access proxy for a specific element of the sparse subvector.
More...
#include <SparseSubvector.h>
Inherits blaze::SparseElement.
|
enum | { returnConst = IsConst<VectorType>::value
} |
| Compilation switch for the return type of the value member function. More...
|
|
typedef std::iterator_traits
< IteratorType >::value_type | SET |
| Type of the underlying sparse elements.
|
|
typedef SET::Reference | RT |
| Reference type of the underlying sparse element.
|
|
typedef SET::ConstReference | CRT |
| Reference-to-const type of the underlying sparse element.
|
|
|
IteratorType | pos_ |
| Iterator to the current position within the sparse subvector.
|
|
size_t | offset_ |
| Offset within the according sparse vector.
|
|
template<typename, bool, bool>
template<typename VectorType, typename IteratorType>
class blaze::SparseSubvector< typename, bool, bool >::SubvectorElement< VectorType, IteratorType >
Access proxy for a specific element of the sparse subvector.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
Compilation switch for the return type of the value member function.
The returnConst compile time constant expression represents a compilation switch for the return type of the value member function. In case the given vector type VectorType is const qualified, returnConst will be set to 1 and the value member function will return a reference to const. Otherwise returnConst will be set to 0 and the value member function will offer write access to the sparse vector elements.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
Constructor for the SubvectorElement class.
- Parameters
-
pos | Iterator to the current position within the sparse subvector. |
offset | The offset within the according sparse vector. |
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
Access to the current index of the sparse element.
- Returns
- The current index of the sparse element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
template<typename T >
Multiplication assignment to the accessed sparse subvector element.
- Parameters
-
v | The right-hand side value for the multiplication. |
- Returns
- Reference to the sparse subvector element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
template<typename T >
Addition assignment to the accessed sparse subvector element.
- Parameters
-
v | The right-hand side value for the addition. |
- Returns
- Reference to the sparse subvector element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
template<typename T >
Subtraction assignment to the accessed sparse subvector element.
- Parameters
-
v | The right-hand side value for the subtraction. |
- Returns
- Reference to the sparse subvector element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
Direct access to the sparse subvector element at the current iterator position.
- Returns
- Reference to the sparse subvector element at the current iterator position.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
template<typename T >
Division assignment to the accessed sparse subvector element.
- Parameters
-
v | The right-hand side value for the division. |
- Returns
- Reference to the sparse subvector element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
template<typename T >
Assignment to the accessed sparse subvector element.
- Parameters
-
v | The new value of the sparse subvector element. |
- Returns
- Reference to the sparse subvector element.
template<typename , bool , bool >
template<typename VectorType , typename IteratorType >
Access to the current value of the sparse subvector element.
- Returns
- The current value of the sparse subvector element.
The documentation for this class was generated from the following file: