Simbody
3.4 (development)
|
This creates a Measure whose value is a Topology-stage constant of any type T. More...
#include <Measure.h>
Classes | |
class | Implementation |
Public Member Functions | |
SimTK_MEASURE_HANDLE_PREAMBLE (Constant, Measure_< T >) | |
Constant (const T &value) | |
Create a constant measure that is not part of any Subsystem, and provide the constant value. | |
Constant (Subsystem &sub, const T &value) | |
Create a constant measure with the given value and install it into the given Subsystem. | |
Constant & | setValue (const T &value) |
Change the value returned by this Measure. | |
SimTK_MEASURE_HANDLE_POSTSCRIPT (Constant, Measure_< T >) |
This creates a Measure whose value is a Topology-stage constant of any type T.
This does not have to be part of a Subsystem, but if it is then changing the constant's value invalidates the containing Subsystem's Topology.
T | This can be any type that supports copy construction. |
SimTK::Measure_< T >::Constant::Constant | ( | const T & | value | ) | [inline, explicit] |
Create a constant measure that is not part of any Subsystem, and provide the constant value.
SimTK::Measure_< T >::Constant::Constant | ( | Subsystem & | sub, |
const T & | value | ||
) | [inline] |
Create a constant measure with the given value and install it into the given Subsystem.
SimTK::Measure_< T >::Constant::SimTK_MEASURE_HANDLE_PREAMBLE | ( | Constant | , |
Measure_< T > | |||
) |
Constant& SimTK::Measure_< T >::Constant::setValue | ( | const T & | value | ) | [inline] |
Change the value returned by this Measure.
Note that this does not require a State since it is a Topology-stage change.
SimTK::Measure_< T >::Constant::SimTK_MEASURE_HANDLE_POSTSCRIPT | ( | Constant | , |
Measure_< T > | |||
) |