![]() |
VR-Forces Development_Version Class Documentation
|
A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object. More...

Public Types | |
| typedef std::vector< DtSimState * > | SimStateVector |
| A vector of DtSimState's. | |
| typedef std::multimap < DtSimEntryUpdater::UpdateRate, DtBaseStateView * > | UpdateRateMap |
| A multimap of the update rates and DtEventView's to be updated at that rate. | |
Public Member Functions | |
| DtSimEntry (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| virtual | ~DtSimEntry () |
| DTOR. | |
| const SimStateVector & | simStates () const |
| SimStateVector accessor. | |
| bool | addState (DtSimState *state) |
| Return's true if state was added to the SimStateVector. | |
| bool | removeState (DtSimState *state) |
| Return's true if state was removed from the SimStateVector. | |
| void | forceUpdate (DtBaseStateView *stateView) |
| Force an update. | |
| void | setUpdateRate (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView) |
| Set the update rate for the state view. | |
| DtSimEntryUpdater::UpdateRate | rateForView (DtBaseStateView *stateView) const |
| Returns the update rate for the state view. | |
| void | stateUpdated () |
| Called by the DtSimStateObject when a state has been updated. | |
| DtUniqueID | id () const |
| Return the unique Id of this entry. | |
Protected Member Functions | |
| void | reset () |
| void | addStateViewToUpdateRateMap (DtSimEntryUpdater::UpdateRate rate, DtBaseStateView *stateView) |
| Add stateView to myUpdateRateMap. | |
| void | removeStateViewFromUpdateRateMap (DtBaseStateView *stateView) |
| Remove the DtEventView from myUpdateRateMap. | |
| DtSimEntryUpdater::UpdateRate | maxUpdateRate () |
| Return the max update rate of myUpdateRateMap. | |
| DtSimEntryUpdater::UpdateRate | minUpdateRate () |
| Return the min update rate of myUpdateRateMap. | |
Protected Attributes | |
| DtDe & | myDe |
| DtUniqueID | myId |
| SimStateVector | mySimStateVector |
| UpdateRateMap | myUpdateRateMap |
| unsigned long long | myUpdateCounter |
| bool | myForceUpdatePending |
Friends | |
| class | DtSimData |
| The sim data is the friend of the entry. | |
A DtSimEntry is a container of DtSimState's and represents the total state of an simulation object.
| typedef std::vector<DtSimState*> makVrv::DtSimEntry::SimStateVector |
A vector of DtSimState's.
| typedef std::multimap< DtSimEntryUpdater::UpdateRate, DtBaseStateView* > makVrv::DtSimEntry::UpdateRateMap |
A multimap of the update rates and DtEventView's to be updated at that rate.
| makVrv::DtSimEntry::DtSimEntry | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
| const SimStateVector& makVrv::DtSimEntry::simStates | ( | ) | const |
SimStateVector accessor.
Referenced by makVrv::DtStateView< StateType >::findState(), and makVrf::findStateFor().
| bool makVrv::DtSimEntry::addState | ( | DtSimState * | state | ) |
Return's true if state was added to the SimStateVector.
| bool makVrv::DtSimEntry::removeState | ( | DtSimState * | state | ) |
Return's true if state was removed from the SimStateVector.
| void makVrv::DtSimEntry::forceUpdate | ( | DtBaseStateView * | stateView | ) |
Force an update.
| void makVrv::DtSimEntry::setUpdateRate | ( | DtSimEntryUpdater::UpdateRate | rate, |
| DtBaseStateView * | stateView | ||
| ) |
Set the update rate for the state view.
Send DtOHz to stop updating.
| DtSimEntryUpdater::UpdateRate makVrv::DtSimEntry::rateForView | ( | DtBaseStateView * | stateView | ) | const |
Returns the update rate for the state view.
| void makVrv::DtSimEntry::stateUpdated | ( | ) |
Called by the DtSimStateObject when a state has been updated.
This will alert DtEventView's that state has been updated.
| DtUniqueID makVrv::DtSimEntry::id | ( | ) | const |
Return the unique Id of this entry.
Referenced by makVrv::DtStateView< DtVrfObjectDataState >::id(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAboutToBeRemoved(), makVrv::DtStateViewCollection< T >::onSimObjectEntryAboutToBeRemoved(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAdded(), makVrv::DtStateViewCollection< T >::onSimObjectEntryAdded(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectStateEntryAboutToBeRemoved(), makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAboutToBeRemoved(), makVrv::DtSimObjectEntryCollection< T >::onSimObjectStateEntryAdded(), and makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAdded().
|
protected |
|
protected |
Add stateView to myUpdateRateMap.
Use setUpdateRate() to actually set the update rate.
|
protected |
Remove the DtEventView from myUpdateRateMap.
Use setUpdateRate(Dt0Hz) to stop the updates for a state view.
|
protected |
Return the max update rate of myUpdateRateMap.
|
protected |
Return the min update rate of myUpdateRateMap.
|
friend |
The sim data is the friend of the entry.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |