Cantera
2.4.0
|
Unary operator to multiply the argument by a constant. More...
#include <utilities.h>
Inherits unary_function< T, double >.
Public Member Functions | |
timesConstant (T c) | |
Constructor. More... | |
double | operator() (T x) |
Parenthesis operator returning a double. More... | |
Public Attributes | |
T | m_c |
Stored constant value of time T. More... | |
Unary operator to multiply the argument by a constant.
The form of this operator is designed for use by std::transform.
Definition at line 33 of file utilities.h.
|
inline |
Constructor.
c | Constant of templated type T that will be stored internally within the object and used in the multiplication operation |
Definition at line 39 of file utilities.h.
|
inline |
Parenthesis operator returning a double.
x | Variable of templated type T that will be used in the multiplication operator |
Definition at line 47 of file utilities.h.
T m_c |
Stored constant value of time T.
Definition at line 52 of file utilities.h.