DGtal  1.5.beta
DGtal::functors::MultiplicationByScalar< T > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Public Member Functions

 MultiplicationByScalar (const T &aValue)
 
operator() (const T &x) const
 

Data Fields

myValue
 

Detailed Description

template<class T>
struct DGtal::functors::MultiplicationByScalar< T >

Multiplication by a scalar functor.

Definition at line 126 of file BasicFunctors.h.

Constructor & Destructor Documentation

◆ MultiplicationByScalar()

template<class T >
DGtal::functors::MultiplicationByScalar< T >::MultiplicationByScalar ( const T &  aValue)
inline

Definition at line 129 of file BasicFunctors.h.

130  : myValue( aValue )
131  {}

Member Function Documentation

◆ operator()()

template<class T >
T DGtal::functors::MultiplicationByScalar< T >::operator() ( const T &  x) const
inline
Parameters
xany value.
Returns
the value myValue * x.

Definition at line 138 of file BasicFunctors.h.

139  {
140  return myValue * x;
141  }

References DGtal::functors::MultiplicationByScalar< T >::myValue.

Field Documentation

◆ myValue

template<class T >
T DGtal::functors::MultiplicationByScalar< T >::myValue

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