|
Teuchos - Trilinos Tools Package
Version of the Day
|
A simple function object that applies a given operand to a spcified arguement using a specific operator. More...
#include <Teuchos_StandardFunctionObjects.hpp>
Public Member Functions | |
| virtual OperandType | runFunction (OperandType arguement) const =0 |
Constructors/Destructors | |
| SimpleFunctionObject () | |
| Constructs a SimpleFunctionObject. | |
| SimpleFunctionObject (OperandType modifyingOperand) | |
| Constructs a SimpleFunctionObject. | |
Getters/Setters | |
| OperandType | getModifiyingOperand () const |
| Returns the modifying operand. | |
| OperandType | setModifyingOperand (OperandType newOperand) |
| Sets the modifyingOperand. | |
A simple function object that applies a given operand to a spcified arguement using a specific operator.
Definition at line 59 of file Teuchos_StandardFunctionObjects.hpp.
| Teuchos::SimpleFunctionObject< OperandType >::SimpleFunctionObject | ( | ) | [inline] |
Constructs a SimpleFunctionObject.
Definition at line 70 of file Teuchos_StandardFunctionObjects.hpp.
| Teuchos::SimpleFunctionObject< OperandType >::SimpleFunctionObject | ( | OperandType | modifyingOperand | ) | [inline] |
Constructs a SimpleFunctionObject.
| modifyingOperand | The operand that will be modifying the arguement given in the runFuction function. |
Definition at line 79 of file Teuchos_StandardFunctionObjects.hpp.
| virtual OperandType Teuchos::SimpleFunctionObject< OperandType >::runFunction | ( | OperandType | arguement | ) | const [pure virtual] |
Runs the desired function on the arguement and returns the result.
| arguement | Arguement on which the function should be run. |
Implemented in Teuchos::DivisionFunction< OperandType >, Teuchos::MultiplicationFunction< OperandType >, Teuchos::AdditionFunction< OperandType >, and Teuchos::SubtractionFunction< OperandType >.
| OperandType Teuchos::SimpleFunctionObject< OperandType >::getModifiyingOperand | ( | ) | const [inline] |
Returns the modifying operand.
Definition at line 100 of file Teuchos_StandardFunctionObjects.hpp.
| OperandType Teuchos::SimpleFunctionObject< OperandType >::setModifyingOperand | ( | OperandType | newOperand | ) | [inline] |
Sets the modifyingOperand.
| newOperand | The new modifyingOperand to use. |
Definition at line 110 of file Teuchos_StandardFunctionObjects.hpp.
1.7.6.1