OpenSim::Constant Class Reference
A class for representing a constant value.
More...
#include <Constant.h>
List of all members.
Detailed Description
A class for representing a constant value.
This class inherits from Function and so can be used as input to any class requiring a Fuction as input.
- Author:
- Peter Loan, Ajay Seth
- Version:
- 1.0
Constructor & Destructor Documentation
Constant::Constant |
( |
double |
value |
) |
|
Constant::Constant |
( |
const Constant & |
aConstant |
) |
|
Copy constructor.
All data members of the specified Constant are copied.
- Parameters:
-
Constant::~Constant |
( |
|
) |
[virtual] |
Member Function Documentation
virtual double OpenSim::Constant::calcValue |
( |
const SimTK::Vector & |
x |
) |
const [inline, virtual] |
Calculate the value of this function at a particular point.
- Parameters:
-
| x | the Vector of input arguments. Its size must equal the value returned by getArgumentSize(). |
Reimplemented from OpenSim::Function.
Object * Constant::copy |
( |
|
) |
const [virtual] |
Copy this object.
- Returns:
- Pointer to a copy of this object.
Implements OpenSim::Function.
SimTK::Function * Constant::createSimTKFunction |
( |
|
) |
const [virtual] |
const double OpenSim::Constant::getValue |
( |
|
) |
const [inline] |
Assignment operator.
Note that data members of the base class are also assigned.
- Parameters:
-
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Function.
void Constant::setValue |
( |
double |
aValue |
) |
|
Member Data Documentation
The documentation for this class was generated from the following files:
- OpenSim/Common/Constant.h
- OpenSim/Common/Constant.cpp