![]() |
VR-Forces 5.0.2 Developer's Guide
|
A DtSimObjectEntryCollection is a collection of DtSimObjectEntry's that have a specific state.
Public Types | |
| typedef std::map< DtUniqueID, DtSimObjectEntry * > | SimObjectEntryMap |
Public Member Functions | |
| DtSimObjectEntryCollection (DtDe &de) | |
| virtual | ~DtSimObjectEntryCollection () |
| size_t | size () const |
| const SimObjectEntryMap & | simObjectEntryMap () const |
| const DtSimObjectEntry * | findSimObjectEntry (DtUniqueID id) const |
Public Attributes | |
| boost::signalslib::signal < void(DtSimObjectEntry &)> | signal_simObjectEntryAdded |
| boost::signalslib::signal < void(DtSimObjectEntry &)> | signal_simObjectEntryAboutToBeRemoved |
Protected Member Functions | |
| void | onSimObjectEntryAdded (DtSimObjectEntry &entry) |
| void | onSimObjectEntryAboutToBeRemoved (DtSimObjectEntry &entry) |
| void | onSimObjectStateEntryAdded (DtSimObjectEntry &entry, DtSimState &) |
| void | onSimObjectStateEntryAboutToBeRemoved (DtSimObjectEntry &entry, DtSimState &) |
| bool | isCompatible (DtSimObjectEntry &entry) |
| bool | isCompatible (DtSimState &entry) |
| void | populateFromExistingEntries () |
Protected Attributes | |
| DtDe & | myDe |
| SimObjectEntryMap | mySimObjectEntryMap |
Private Member Functions | |
| DtSimObjectEntryCollection () | |
| DtSimObjectEntryCollection (const DtSimObjectEntryCollection &) | |
| DtSimObjectEntryCollection & | operator= (const DtSimObjectEntryCollection &) |
| typedef std::map<DtUniqueID, DtSimObjectEntry*> makVrv::DtSimObjectEntryCollection< T >::SimObjectEntryMap |
Map of unique id's to DtSimObjectEntry's.
| makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection | ( | DtDe & | de | ) |
CTOR. Connects to DtSimData for signals about DtSimObjectEntry and DtSimState changes.
References makVrv::bind(), makVrv::DtDe::dataBank(), makVrv::DtSimObjectEntryCollection< T >::myDe, makVrv::DtSimObjectEntryCollection< T >::populateFromExistingEntries(), makVrv::DtSimData::signal_simObjectEntryAdded, makVrv::DtSimData::signal_simObjectEntryToBeRemoved, makVrv::DtSimData::signal_simStateAdded, makVrv::DtSimData::signal_simStateToBeRemoved, and makVrv::DtDataBank::simData().
|
virtual |
|
private |
Protected CTOR.
|
private |
| size_t makVrv::DtSimObjectEntryCollection< T >::size | ( | ) | const |
Return the number of the objects in the container.
| const DtSimObjectEntryCollection< T >::SimObjectEntryMap & makVrv::DtSimObjectEntryCollection< T >::simObjectEntryMap | ( | ) | const |
Return the map of DtSimObjectEntry's in this collection.
| const DtSimObjectEntry * makVrv::DtSimObjectEntryCollection< T >::findSimObjectEntry | ( | DtUniqueID | id | ) | const |
Find DtSimEntry by id.
|
protected |
Called when a DtSimObjectEntry is added.
References makVrv::DtSimEntry::id().
|
protected |
Called when a DtSimObjectEntry is about to be removed.
References makVrv::DtSimEntry::id().
|
protected |
Called when a DtSimState is added to a DtSimObjectEntry.
References makVrv::DtSimEntry::id().
|
protected |
Called when a DtSimState is about to be removed from a DtSimObjectEntry.
References makVrv::DtSimEntry::id().
|
protected |
Returns true if the DtSimEntry contains a state of type T.
References makVrv::DtStateView< StateType >::isCompatible().
|
protected |
Returns true if the DtSimState is of type T.
References makVrv::DtStateView< StateType >::isCompatible().
|
protected |
Go through existing DtSimEntry's and populate this container.
Referenced by makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection().
|
private |
| boost::signalslib::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAdded |
Signal emitted when a DtSimObjectEntry is added.
| boost::signalslib::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAboutToBeRemoved |
Signal emitted when a DtSimObjectEntry is about to be removed.
|
protected |
|
protected |