DGtal  0.9.4beta
Public Member Functions | Data Fields
DGtal::functors::MultiplicationByScalar< T > Struct Template Reference

#include <DGtal/base/BasicFunctors.h>

Inheritance diagram for DGtal::functors::MultiplicationByScalar< T >:
[legend]
Collaboration diagram for DGtal::functors::MultiplicationByScalar< T >:
[legend]

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 >

Unary minus functor.

Definition at line 125 of file BasicFunctors.h.

Constructor & Destructor Documentation

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

Definition at line 128 of file BasicFunctors.h.

129  : myValue( aValue )
130  {}

Member Function Documentation

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 137 of file BasicFunctors.h.

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

138  {
139  return myValue * x;
140  }

Field Documentation

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

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