Unary operator to multiply the argument by a constant. More...
#include <utilities.h>
Public Member Functions | |
timesConstant (T c) | |
Constructor. | |
double | operator() (T x) |
Parenthesis operator returning a double. | |
Public Attributes | |
T | m_c |
Storred constant value of time T. |
Unary operator to multiply the argument by a constant.
The form of this operator is designed for use by std::transform.
Definition at line 34 of file utilities.h.
timesConstant | ( | T | c | ) | [inline] |
Constructor.
c | Constant of templated type T that will be storred internally within the object and used in the multiplication operation |
Definition at line 42 of file utilities.h.
double operator() | ( | T | x | ) | [inline] |
Parenthesis operator returning a double.
x | Variable of templated type T that will be used in the mulitplication operator |
Definition at line 52 of file utilities.h.
References timesConstant< T >::m_c.
T m_c |
Storred constant value of time T.
Definition at line 55 of file utilities.h.
Referenced by timesConstant< T >::operator()().