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

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

#include <Expression.hpp>

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

Public Types

typedef E ExpressionType
 The derived vector 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 vector expression class instance. More...
 
ExpressionTypeoperator() ()
 Returns a reference to the derived vector expression class instance. More...
 

Protected Member Functions

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

Detailed Description

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

CRTP base class of all vector expression types.

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

Template Parameters
EThe derived vector expression type.

Member Typedef Documentation

◆ ExpressionType

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

The derived vector expression type.

Constructor & Destructor Documentation

◆ VectorExpression()

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

◆ ~VectorExpression()

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

Member Function Documentation

◆ operator()() [1/2]

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

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

Returns
A const reference to the expression subclass instance.

◆ operator()() [2/2]

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

Returns a reference to the derived vector expression class instance.

Returns
A reference to the expression subclass instance.

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