All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator Class Reference

Iterator over the elements of the sparse vector/scalar multiplication expression. More...

#include <SVecScalarDivExpr.h>

Public Types

typedef SparseElement
< ElementType
Element
 Element type of the sparse vector expression.
 
typedef
boost::remove_reference
< LeftOperand >
::type::ConstIterator 
IteratorType
 Iterator type of the sparse vector expression.
 
typedef std::forward_iterator_tag IteratorCategory
 The iterator category.
 
typedef Element ValueType
 Type of the underlying pointers.
 
typedef ValueTypePointerType
 Pointer return type.
 
typedef ValueTypeReferenceType
 Reference return type.
 
typedef ptrdiff_t DifferenceType
 Difference between two iterators.
 
typedef IteratorCategory iterator_category
 The iterator category.
 
typedef ValueType value_type
 Type of the underlying pointers.
 
typedef PointerType pointer
 Pointer return type.
 
typedef ReferenceType reference
 Reference return type.
 
typedef DifferenceType difference_type
 Difference between two iterators.
 

Public Member Functions

 ConstIterator (IteratorType vector, RightOperand scalar)
 Constructor for the ConstIterator class.
 
ConstIteratoroperator++ ()
 Pre-increment operator.
 
const Element operator* () const
 Direct access to the sparse vector element at the current iterator position.
 
const ConstIteratoroperator-> () const
 Direct access to the sparse vector element at the current iterator position.
 
ReturnType value () const
 Access to the current value of the sparse element.
 
size_t index () const
 Access to the current index of the sparse element.
 
bool operator== (const ConstIterator &rhs) const
 Equality comparison between two ConstIterator objects.
 
bool operator!= (const ConstIterator &rhs) const
 Inequality comparison between two ConstIterator objects.
 
DifferenceType operator- (const ConstIterator &rhs) const
 Calculating the number of elements between two expression iterators.
 

Private Attributes

IteratorType vector_
 Iterator over the elements of the left-hand side sparse vector expression.
 
RightOperand scalar_
 Right hand side scalar of the multiplication expression.
 

Detailed Description

template<typename VT, typename ST, bool TF>
class blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator

Iterator over the elements of the sparse vector/scalar multiplication expression.

Member Function Documentation

template<typename VT , typename ST , bool TF>
size_t blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::index ( ) const
inline

Access to the current index of the sparse element.

Returns
The current index of the sparse element.
template<typename VT , typename ST , bool TF>
bool blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator!= ( const ConstIterator rhs) const
inline

Inequality comparison between two ConstIterator objects.

Parameters
rhsThe right-hand side expression iterator.
Returns
true if the iterators don't refer to the same element, false if they do.
template<typename VT , typename ST , bool TF>
const Element blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator* ( ) const
inline

Direct access to the sparse vector element at the current iterator position.

Returns
The current value of the sparse element.
template<typename VT , typename ST , bool TF>
ConstIterator& blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator++ ( )
inline

Pre-increment operator.

Returns
Reference to the incremented expression iterator.
template<typename VT , typename ST , bool TF>
DifferenceType blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator- ( const ConstIterator rhs) const
inline

Calculating the number of elements between two expression iterators.

Parameters
rhsThe right-hand side expression iterator.
Returns
The number of elements between the two expression iterators.
template<typename VT , typename ST , bool TF>
const ConstIterator* blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator-> ( ) const
inline

Direct access to the sparse vector element at the current iterator position.

Returns
Reference to the sparse vector element at the current iterator position.
template<typename VT , typename ST , bool TF>
bool blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::operator== ( const ConstIterator rhs) const
inline

Equality comparison between two ConstIterator objects.

Parameters
rhsThe right-hand side expression iterator.
Returns
true if the iterators refer to the same element, false if not.
template<typename VT , typename ST , bool TF>
ReturnType blaze::SVecScalarDivExpr< VT, ST, TF >::ConstIterator::value ( ) const
inline

Access to the current value of the sparse element.

Returns
The current value of the sparse element.

The documentation for this class was generated from the following file: