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

#include <StandardMatrix.hpp>

Public Member Functions

 Proxy ()
 Proxy (DataType &value)
 Proxy (const Proxy &rhs)
Proxy & operator= (const Proxy &rhs)
DataType & operator* ()
const DataType & operator* () const
 operator DataType & ()
 operator const DataType & () const
void operator= (const DataType &newValue)

Private Attributes

DataType & m_value

Static Private Attributes

static DataType defaultReturnValue

Detailed Description

template<typename DataType>
class Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy

Definition at line 417 of file StandardMatrix.hpp.

Constructor & Destructor Documentation

template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::Proxy ( )
inline

Definition at line 420 of file StandardMatrix.hpp.

: m_value(defaultReturnValue) {}
template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::Proxy ( DataType &  value)
inlineexplicit

Definition at line 421 of file StandardMatrix.hpp.

: m_value(value) {}
template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::Proxy ( const Proxy &  rhs)
inline

Definition at line 422 of file StandardMatrix.hpp.

: m_value(rhs.m_value) {}

Member Function Documentation

template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator const DataType & ( ) const
inline

Definition at line 432 of file StandardMatrix.hpp.

{ return m_value; }
template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator DataType & ( )
inline

Definition at line 431 of file StandardMatrix.hpp.

{ return m_value; }
template<typename DataType >
DataType& Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator* ( )
inline

Definition at line 429 of file StandardMatrix.hpp.

{ return m_value; }
template<typename DataType >
const DataType& Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator* ( ) const
inline

Definition at line 430 of file StandardMatrix.hpp.

{ return m_value; }
template<typename DataType >
Proxy& Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator= ( const Proxy &  rhs)
inline

Definition at line 423 of file StandardMatrix.hpp.

{
m_value = rhs.m_value;
return *this;
}
template<typename DataType >
void Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::operator= ( const DataType &  newValue)
inline

Definition at line 433 of file StandardMatrix.hpp.

{
if( &m_value != &defaultReturnValue )
{
m_value = newValue;
}
}

Member Data Documentation

template<typename DataType >
DataType Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::defaultReturnValue
staticprivate

Definition at line 443 of file StandardMatrix.hpp.

template<typename DataType >
DataType& Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::m_value
private

Definition at line 442 of file StandardMatrix.hpp.