Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 412 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 416 of file StandardMatrix.hpp.

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

Definition at line 417 of file StandardMatrix.hpp.

Member Function Documentation

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

Definition at line 427 of file StandardMatrix.hpp.

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

Definition at line 426 of file StandardMatrix.hpp.

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

Definition at line 424 of file StandardMatrix.hpp.

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

Definition at line 425 of file StandardMatrix.hpp.

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

Definition at line 418 of file StandardMatrix.hpp.

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

Definition at line 428 of file StandardMatrix.hpp.

429  {
430  if( &m_value != &defaultReturnValue )
431  {
432  m_value = newValue;
433  }
434  }

Member Data Documentation

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

Definition at line 438 of file StandardMatrix.hpp.

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

Definition at line 437 of file StandardMatrix.hpp.