42 #ifndef Teuchos_STANDARD_FUNCTION_OBJECTS_H
43 #define Teuchos_STANDARD_FUNCTION_OBJECTS_H
58 template<
class OperandType>
92 virtual OperandType
runFunction(OperandType arguement)
const=0;
136 template<
class OperandType>
179 "SubtractionFunction("
195 template<
class OperandType>
254 template<
class OperandType>
298 return "MultiplicationFunction(" +
314 template<
class OperandType>
OperandType _modifyingOperand
The modifying operand.
std::string getTypeAttributeValue() const
A simple function object that multiplys a specififed value from the given arguement in the runFunctio...
SimpleFunctionObject()
Constructs a SimpleFunctionObject.
A simple function object that adds a specififed value from the given arguement in the runFunction fun...
OperandType setModifyingOperand(OperandType newOperand)
Sets the modifyingOperand.
SubtractionFunction(OperandType amountToSubtract)
Constructs a SubtractionFunction.
virtual OperandType runFunction(OperandType arguement) const =0
MultiplicationFunction(OperandType amountToMultiplyBy)
Constructs a MultiplicationFunction.
OperandType runFunction(OperandType arguement) const
An object representation of a function.
std::string getTypeAttributeValue() const
A simple function object that subtracts a specififed value from the given arguement in the runFunctio...
OperandType runFunction(OperandType arguement) const
SubtractionFunction()
Constructs a SubtractionFunction.
std::string getTypeAttributeValue() const
AdditionFunction()
Constructs a AdditionFunction.
OperandType runFunction(OperandType arguement) const
OperandType getModifiyingOperand() const
Returns the modifying operand.
A simple function object that divides a specififed value from the given arguement in the runFunction ...
DivisionFunction()
Constructs a DivisionFunction.
AdditionFunction(OperandType amountToAdd)
Constructs a AdditionFunction.
A function object represents an arbitrary function.
MultiplicationFunction()
Constructs a MultiplicationFunction.
OperandType runFunction(OperandType arguement) const
SimpleFunctionObject(OperandType modifyingOperand)
Constructs a SimpleFunctionObject.
std::string getTypeAttributeValue() const
DivisionFunction(OperandType amountToDivideBy)
Constructs a DivisionFunction.
A simple function object that applies a given operand to a spcified arguement using a specific operat...
static std::string name()