Chemical Data Processing Library C++ API - Version 1.4.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
CDPL::Math::MatrixExpression< E > Class Template Reference

CRTP base class of all matrix expression types. More...

#include <Expression.hpp>

+ Inheritance diagram for CDPL::Math::MatrixExpression< E >:

Public Types

typedef E ExpressionType
 The derived matrix expression type. More...
 
- Public Types inherited from CDPL::Math::Expression< E >
typedef E ExpressionType
 The derived expression type. More...
 

Public Member Functions

const ExpressionTypeoperator() () const
 Returns a const reference to the derived matrix expression class instance. More...
 
ExpressionTypeoperator() ()
 Returns a reference to the derived matrix expression class instance. More...
 

Protected Member Functions

 MatrixExpression ()
 
 ~MatrixExpression ()
 
- Protected Member Functions inherited from CDPL::Math::Expression< E >
 Expression ()
 
 ~Expression ()
 

Detailed Description

template<typename E>
class CDPL::Math::MatrixExpression< E >

CRTP base class of all matrix expression types.

Provides downcast access to the concrete derived expression class instance via the function call operator.

Template Parameters
EThe derived matrix expression type.

Member Typedef Documentation

◆ ExpressionType

template<typename E >
typedef E CDPL::Math::MatrixExpression< E >::ExpressionType

The derived matrix expression type.

Constructor & Destructor Documentation

◆ MatrixExpression()

template<typename E >
CDPL::Math::MatrixExpression< E >::MatrixExpression ( )
inlineprotected

◆ ~MatrixExpression()

template<typename E >
CDPL::Math::MatrixExpression< E >::~MatrixExpression ( )
inlineprotected

Member Function Documentation

◆ operator()() [1/2]

template<typename E >
const ExpressionType& CDPL::Math::MatrixExpression< E >::operator() ( ) const
inline

Returns a const reference to the derived matrix expression class instance.

Returns
A const reference to the expression subclass instance.

◆ operator()() [2/2]

template<typename E >
ExpressionType& CDPL::Math::MatrixExpression< E >::operator() ( )
inline

Returns a reference to the derived matrix expression class instance.

Returns
A reference to the expression subclass instance.

The documentation for this class was generated from the following file: