Simbody
Classes | Public Member Functions

SimTK::Measure_< T >::Variable Class Reference

This creates a Measure whose value is a discrete State variable of any type T. More...

#include <Measure.h>

Inheritance diagram for SimTK::Measure_< T >::Variable:

List of all members.

Classes

class  Implementation

Public Member Functions

 SimTK_MEASURE_HANDLE_PREAMBLE (Variable, Measure_< T >)
 Variable (Subsystem &sub, Stage invalidates, const T &defaultValue)
VariablesetDefaultValue (const T &defaultValue)
 Note that this does not require a State since it is a Topology-stage change.
const T & getDefaultValue () const
void setValue (State &state, const T &value) const
 SimTK_MEASURE_HANDLE_POSTSCRIPT (Variable, Measure_< T >)

Detailed Description

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

This creates a Measure whose value is a discrete State variable of any type T.


Constructor & Destructor Documentation

template<class T>
SimTK::Measure_< T >::Variable::Variable ( Subsystem sub,
Stage  invalidates,
const T &  defaultValue 
) [inline]

Member Function Documentation

template<class T>
SimTK::Measure_< T >::Variable::SimTK_MEASURE_HANDLE_PREAMBLE ( Variable  ,
Measure_< T >   
)
template<class T>
Variable& SimTK::Measure_< T >::Variable::setDefaultValue ( const T &  defaultValue) [inline]

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

template<class T>
const T& SimTK::Measure_< T >::Variable::getDefaultValue ( ) const [inline]
template<class T>
void SimTK::Measure_< T >::Variable::setValue ( State state,
const T &  value 
) const [inline]
template<class T>
SimTK::Measure_< T >::Variable::SimTK_MEASURE_HANDLE_POSTSCRIPT ( Variable  ,
Measure_< T >   
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines