Nektar++
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 338 of file StandardMatrix.hpp.

Constructor & Destructor Documentation

◆ Proxy() [1/3]

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

◆ Proxy() [2/3]

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

Definition at line 344 of file StandardMatrix.hpp.

344 : m_value(value)
345 {
346 }

◆ Proxy() [3/3]

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

Definition at line 347 of file StandardMatrix.hpp.

347 : m_value(rhs.m_value)
348 {
349 }

Member Function Documentation

◆ operator const DataType &()

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

Definition at line 368 of file StandardMatrix.hpp.

369 {
370 return m_value;
371 }

◆ operator DataType &()

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

Definition at line 364 of file StandardMatrix.hpp.

365 {
366 return m_value;
367 }

◆ operator*() [1/2]

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

Definition at line 356 of file StandardMatrix.hpp.

357 {
358 return m_value;
359 }

◆ operator*() [2/2]

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

Definition at line 360 of file StandardMatrix.hpp.

361 {
362 return m_value;
363 }

◆ operator=() [1/2]

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

Definition at line 372 of file StandardMatrix.hpp.

373 {
375 {
376 m_value = newValue;
377 }
378 }

◆ operator=() [2/2]

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

Definition at line 350 of file StandardMatrix.hpp.

351 {
352 m_value = rhs.m_value;
353 return *this;
354 }

Member Data Documentation

◆ defaultReturnValue

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

Definition at line 382 of file StandardMatrix.hpp.

◆ m_value

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

Definition at line 381 of file StandardMatrix.hpp.