OperatorScalarMultiplicationDivision< TS, S > Class Template Reference

CPP API: mio::OperatorScalarMultiplicationDivision< TS, S > Class Template Reference
mio::OperatorScalarMultiplicationDivision< TS, S > Class Template Reference

base class to add operator *, *=, /, /= with a scalar to a class derived from TypeSafe. More...

#include <type_safe.h>

Public Member Functions

TS operator* (const S &other) const
 
TS & operator*= (const S &other)
 
TS operator/ (const S &other) const
 
TS & operator/= (const S &other)
 

Detailed Description

template<class TS, class S>
class mio::OperatorScalarMultiplicationDivision< TS, S >

base class to add operator *, *=, /, /= with a scalar to a class derived from TypeSafe.

Template Parameters
TSConcrete class derived from TypeSafe
SType of the scalar, default underlying type of TS

Member Function Documentation

◆ operator*()

template<class TS , class S >
TS mio::OperatorScalarMultiplicationDivision< TS, S >::operator* ( const S &  other) const
inline

◆ operator*=()

template<class TS , class S >
TS& mio::OperatorScalarMultiplicationDivision< TS, S >::operator*= ( const S &  other)
inline

◆ operator/()

template<class TS , class S >
TS mio::OperatorScalarMultiplicationDivision< TS, S >::operator/ ( const S &  other) const
inline

◆ operator/=()

template<class TS , class S >
TS& mio::OperatorScalarMultiplicationDivision< TS, S >::operator/= ( const S &  other)
inline