Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator Class Reference

#include <ScaledMatrix.hpp>

Public Member Functions

 const_iterator (typename InnerType::const_iterator iter, const NumberType &scale)
const_iterator operator++ (int)
const_iterator & operator++ ()
NumberType operator* ()
bool operator== (const const_iterator &rhs)
bool operator!= (const const_iterator &rhs)

Private Attributes

InnerType::const_iterator m_iter
NumberType m_scale

Detailed Description

template<typename DataType, typename InnerMatrixType>
class Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator

Definition at line 64 of file ScaledMatrix.hpp.

Constructor & Destructor Documentation

template<typename DataType , typename InnerMatrixType >
Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::const_iterator ( typename InnerType::const_iterator  iter,
const NumberType scale 
)
inline

Definition at line 67 of file ScaledMatrix.hpp.

:
m_iter(iter),
m_scale(scale)
{
}

Member Function Documentation

template<typename DataType , typename InnerMatrixType >
bool Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::operator!= ( const const_iterator &  rhs)
inline

Definition at line 97 of file ScaledMatrix.hpp.

{
return !(*this == rhs);
}
template<typename DataType , typename InnerMatrixType >
NumberType Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::operator* ( )
inline

Definition at line 87 of file ScaledMatrix.hpp.

{
return m_scale*(*m_iter);
}
template<typename DataType , typename InnerMatrixType >
const_iterator Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::operator++ ( int  )
inline

Definition at line 74 of file ScaledMatrix.hpp.

{
const_iterator out = *this;
++m_iter;
return out;
}
template<typename DataType , typename InnerMatrixType >
const_iterator& Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::operator++ ( )
inline

Definition at line 81 of file ScaledMatrix.hpp.

{
++m_iter;
return *this;
}
template<typename DataType , typename InnerMatrixType >
bool Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::operator== ( const const_iterator &  rhs)
inline

Definition at line 92 of file ScaledMatrix.hpp.

{
return m_iter == rhs.m_iter;
}

Member Data Documentation

template<typename DataType , typename InnerMatrixType >
InnerType::const_iterator Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::m_iter
private

Definition at line 103 of file ScaledMatrix.hpp.

template<typename DataType , typename InnerMatrixType >
NumberType Nektar::NekMatrix< NekMatrix< DataType, InnerMatrixType >, ScaledMatrixTag >::const_iterator::m_scale
private

Definition at line 104 of file ScaledMatrix.hpp.