Constant Class Reference

This creates a Measure whose value is a Topology-stage constant of any type T. More...

#include <Measure.h>

Inheritance diagram for Constant:
Measure_< T > AbstractMeasure One Zero

List of all members.

Classes

class  Implementation

Public Member Functions

 SimTK_MEASURE_HANDLE_PREAMBLE (Constant, Measure_< T >)
 Constant (const T &value)
 Constant (Subsystem &sub, const T &value)
ConstantsetValue (const T &value)
 Note that this does not require a State since it is a Topology-stage change.
 SimTK_MEASURE_HANDLE_POSTSCRIPT (Constant, Measure_< T >)

Detailed Description

template<class T>
class SimTK::Measure_< T >::Constant

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.


Constructor & Destructor Documentation

Constant ( const T &  value  )  [inline, explicit]
Constant ( Subsystem sub,
const T &  value 
) [inline]

Member Function Documentation

Constant& setValue ( const T &  value  )  [inline]

Note that this does not require a State since it is a Topology-stage change.

References AbstractMeasure::updImpl().

SimTK_MEASURE_HANDLE_POSTSCRIPT ( Constant  ,
Measure_< T >   
)
SimTK_MEASURE_HANDLE_PREAMBLE ( Constant  ,
Measure_< T >   
)

The documentation for this class was generated from the following file:

Generated on Thu Aug 12 16:38:26 2010 for SimTKcore by  doxygen 1.6.1