10 #ifndef Teuchos_STANDARD_FUNCTION_OBJECTS_H
11 #define Teuchos_STANDARD_FUNCTION_OBJECTS_H
26 template<
class OperandType>
60 virtual OperandType
runFunction(OperandType arguement)
const=0;
104 template<
class OperandType>
147 "SubtractionFunction("
163 template<
class OperandType>
222 template<
class OperandType>
266 return "MultiplicationFunction(" +
282 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()