Simbody
|
This is a concrete Subsystem that is part of every System. It provides a variety of services for the System, such as maintaining lists of event handlers and reporters, and acting as a source of globally unique event IDs. More...
#include <System.h>
Public Member Functions | |
DefaultSystemSubsystem (System &sys) | |
void | addEventHandler (ScheduledEventHandler *handler) |
void | addEventHandler (TriggeredEventHandler *handler) |
void | addEventReporter (ScheduledEventReporter *handler) const |
void | addEventReporter (TriggeredEventReporter *handler) const |
EventId | createEventId (SubsystemIndex subsys, const State &state) const |
void | findSubsystemEventIds (SubsystemIndex subsys, const State &state, const Array_< EventId > &allEvents, Array_< EventId > &eventsForSubsystem) const |
This is a concrete Subsystem that is part of every System. It provides a variety of services for the System, such as maintaining lists of event handlers and reporters, and acting as a source of globally unique event IDs.
To obtain the default subsystem for a System, call getDefaultSubsystem() or updDefaultSubsystem() on it. Also, a System can be implicitly converted to a Subsystem, in which case it actually returns a reference to this Subsystem.
SimTK::DefaultSystemSubsystem::DefaultSystemSubsystem | ( | System & | sys | ) | [explicit] |
void SimTK::DefaultSystemSubsystem::addEventHandler | ( | ScheduledEventHandler * | handler | ) |
void SimTK::DefaultSystemSubsystem::addEventHandler | ( | TriggeredEventHandler * | handler | ) |
void SimTK::DefaultSystemSubsystem::addEventReporter | ( | ScheduledEventReporter * | handler | ) | const |
void SimTK::DefaultSystemSubsystem::addEventReporter | ( | TriggeredEventReporter * | handler | ) | const |
EventId SimTK::DefaultSystemSubsystem::createEventId | ( | SubsystemIndex | subsys, |
const State & | state | ||
) | const |
void SimTK::DefaultSystemSubsystem::findSubsystemEventIds | ( | SubsystemIndex | subsys, |
const State & | state, | ||
const Array_< EventId > & | allEvents, | ||
Array_< EventId > & | eventsForSubsystem | ||
) | const |