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