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

Expression-template node applying a unary functor F that returns a quaternion result to a quaternion expression E. More...

#include <QuaternionExpression.hpp>

+ Inheritance diagram for CDPL::Math::QuaternionUnary1< E, F >:

Public Types

typedef F::ResultType ValueType
 The element value type of the expression (the functor's result type). More...
 
typedef const ValueType ConstReference
 Constant reference type to a component value. More...
 
typedef const ValueType Reference
 Mutable reference type (degrades to const for expression-template results). More...
 
typedef const SelfType ConstClosureType
 Constant closure type used when this expression appears inside another expression. More...
 
typedef SelfType ClosureType
 Closure type used when this expression appears inside another expression. More...
 
- Public Types inherited from CDPL::Math::QuaternionExpression< QuaternionUnary1< E, F > >
typedef QuaternionUnary1< E, F > ExpressionType
 The derived quaternion expression type. More...
 
- Public Types inherited from CDPL::Math::Expression< E >
typedef E ExpressionType
 The derived expression type (made available to expression-template machinery). More...
 

Public Member Functions

 QuaternionUnary1 (const ExpressionType &e)
 Constructs the expression-template node wrapping e. More...
 
ConstReference getC1 () const
 Returns the result of applying the unary functor to component C1 of the wrapped expression. More...
 
ConstReference getC2 () const
 Returns the result of applying the unary functor to component C2 of the wrapped expression. More...
 
ConstReference getC3 () const
 Returns the result of applying the unary functor to component C3 of the wrapped expression. More...
 
ConstReference getC4 () const
 Returns the result of applying the unary functor to component C4 of the wrapped expression. More...
 
- Public Member Functions inherited from CDPL::Math::QuaternionExpression< QuaternionUnary1< E, F > >
const ExpressionTypeoperator() () const
 Returns a const reference to the derived quaternion expression. More...
 
ExpressionTypeoperator() ()
 Returns a reference to the derived quaternion expression. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CDPL::Math::QuaternionExpression< QuaternionUnary1< E, F > >
 QuaternionExpression ()
 
 ~QuaternionExpression ()
 
- Protected Member Functions inherited from CDPL::Math::Expression< E >
 Expression ()
 
 ~Expression ()
 

Detailed Description

template<typename E, typename F>
class CDPL::Math::QuaternionUnary1< E, F >

Expression-template node applying a unary functor F that returns a quaternion result to a quaternion expression E.

Template Parameters
EThe wrapped quaternion expression type.
FThe unary functor type returning a quaternion.

Member Typedef Documentation

◆ ValueType

template<typename E , typename F >
typedef F::ResultType CDPL::Math::QuaternionUnary1< E, F >::ValueType

The element value type of the expression (the functor's result type).

◆ ConstReference

template<typename E , typename F >
typedef const ValueType CDPL::Math::QuaternionUnary1< E, F >::ConstReference

Constant reference type to a component value.

◆ Reference

template<typename E , typename F >
typedef const ValueType CDPL::Math::QuaternionUnary1< E, F >::Reference

Mutable reference type (degrades to const for expression-template results).

◆ ConstClosureType

template<typename E , typename F >
typedef const SelfType CDPL::Math::QuaternionUnary1< E, F >::ConstClosureType

Constant closure type used when this expression appears inside another expression.

◆ ClosureType

template<typename E , typename F >
typedef SelfType CDPL::Math::QuaternionUnary1< E, F >::ClosureType

Closure type used when this expression appears inside another expression.

Constructor & Destructor Documentation

◆ QuaternionUnary1()

template<typename E , typename F >
CDPL::Math::QuaternionUnary1< E, F >::QuaternionUnary1 ( const ExpressionType e)
inline

Constructs the expression-template node wrapping e.

Parameters
eThe quaternion expression to wrap.

Member Function Documentation

◆ getC1()

template<typename E , typename F >
ConstReference CDPL::Math::QuaternionUnary1< E, F >::getC1 ( ) const
inline

Returns the result of applying the unary functor to component C1 of the wrapped expression.

Returns
The transformed C1 component.

◆ getC2()

template<typename E , typename F >
ConstReference CDPL::Math::QuaternionUnary1< E, F >::getC2 ( ) const
inline

Returns the result of applying the unary functor to component C2 of the wrapped expression.

Returns
The transformed C2 component.

◆ getC3()

template<typename E , typename F >
ConstReference CDPL::Math::QuaternionUnary1< E, F >::getC3 ( ) const
inline

Returns the result of applying the unary functor to component C3 of the wrapped expression.

Returns
The transformed C3 component.

◆ getC4()

template<typename E , typename F >
ConstReference CDPL::Math::QuaternionUnary1< E, F >::getC4 ( ) const
inline

Returns the result of applying the unary functor to component C4 of the wrapped expression.

Returns
The transformed C4 component.

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