42 #ifndef Teuchos_STANDARD_FUNCTION_OBJECTS_H 43 #define Teuchos_STANDARD_FUNCTION_OBJECTS_H 58 template<
class OperandType>
81 _modifyingOperand(modifyingOperand){}
92 virtual OperandType
runFunction(OperandType arguement)
const=0;
101 return _modifyingOperand;
111 _modifyingOperand = newOperand;
123 OperandType _modifyingOperand;
136 template<
class OperandType>
179 "SubtractionFunction(" 195 template<
class OperandType>
254 template<
class OperandType>
298 return "MultiplicationFunction(" +
314 template<
class OperandType>
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
OperandType runFunction(OperandType arguement) const
MultiplicationFunction(OperandType amountToMultiplyBy)
Constructs a MultiplicationFunction.
An object representation of a function.
A simple function object that subtracts a specififed value from the given arguement in the runFunctio...
OperandType getModifiyingOperand() const
Returns the modifying operand.
SubtractionFunction()
Constructs a SubtractionFunction.
std::string getTypeAttributeValue() const
OperandType runFunction(OperandType arguement) const
OperandType runFunction(OperandType arguement) const
AdditionFunction()
Constructs a AdditionFunction.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.
std::string getTypeAttributeValue() const
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.
std::string getTypeAttributeValue() const
A function object represents an arbitrary function.
MultiplicationFunction()
Constructs a MultiplicationFunction.
SimpleFunctionObject(OperandType modifyingOperand)
Constructs a SimpleFunctionObject.
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()
std::string getTypeAttributeValue() const
OperandType runFunction(OperandType arguement) const