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)
 
Proxyoperator= (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
template<typename DataType >
Nektar::NekMatrix< DataType, StandardMatrixTag >::Proxy::Proxy ( DataType &  value)
inlineexplicit

Definition at line 421 of file StandardMatrix.hpp.

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

Definition at line 422 of file StandardMatrix.hpp.

Member Function Documentation

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

Definition at line 432 of file StandardMatrix.hpp.

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

Definition at line 431 of file StandardMatrix.hpp.

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

Definition at line 429 of file StandardMatrix.hpp.

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

Definition at line 430 of file StandardMatrix.hpp.

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

Definition at line 423 of file StandardMatrix.hpp.

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

Definition at line 433 of file StandardMatrix.hpp.

434  {
435  if( &m_value != &defaultReturnValue )
436  {
437  m_value = newValue;
438  }
439  }

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.