![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtSimObjectEntryCollection is a collection of DtSimObjectEntry's that have a specific state. More...
Public Types | |
| typedef std::map< DtUniqueID, DtSimObjectEntry * > | SimObjectEntryMap |
| Map of unique id's to DtSimObjectEntry's. | |
Public Member Functions | |
| DtSimObjectEntryCollection (DtDe &de) | |
| CTOR. | |
| virtual | ~DtSimObjectEntryCollection () |
| DTOR. | |
| size_t | size () const |
| Return the number of the objects in the container. | |
| const SimObjectEntryMap & | simObjectEntryMap () const |
| Return the map of DtSimObjectEntry's in this collection. | |
| const DtSimObjectEntry * | findSimObjectEntry (DtUniqueID id) const |
| Find DtSimEntry by id. | |
Public Attributes | |
| boost::signal< void(DtSimObjectEntry &)> | signal_simObjectEntryAdded |
| Signal emitted when a DtSimObjectEntry is added. | |
| boost::signal< void(DtSimObjectEntry &)> | signal_simObjectEntryAboutToBeRemoved |
| Signal emitted when a DtSimObjectEntry is about to be removed. | |
Protected Member Functions | |
| void | onSimObjectEntryAdded (DtSimObjectEntry &entry) |
| Called when a DtSimObjectEntry is added. | |
| void | onSimObjectEntryAboutToBeRemoved (DtSimObjectEntry &entry) |
| Called when a DtSimObjectEntry is about to be removed. | |
| bool | isCompatible (DtSimObjectEntry &entry) |
| Returns true if the DtSimEntry contains a state of type T. | |
| void | populateFromExistingEntries () |
| Go through existing DtSimEntry's and populate this container. | |
Protected Attributes | |
| DtDe & | myDe |
| SimObjectEntryMap | mySimObjectEntryMap |
Private Member Functions | |
| DtSimObjectEntryCollection () | |
| Protected CTOR. | |
| DtSimObjectEntryCollection (const DtSimObjectEntryCollection &) | |
| DtSimObjectEntryCollection & | operator= (const DtSimObjectEntryCollection &) |
A DtSimObjectEntryCollection is a collection of DtSimObjectEntry's that have a specific state.
| 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::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().
| makVrv::DtSimObjectEntryCollection< T >::~DtSimObjectEntryCollection | ( | ) | [virtual] |
DTOR.
| makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection | ( | ) | [private] |
Protected CTOR.
| makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection | ( | const DtSimObjectEntryCollection< T > & | ) | [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.
| void makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAdded | ( | DtSimObjectEntry & | entry | ) | [protected] |
Called when a DtSimObjectEntry is added.
References makVrv::DtSimEntry::id().
| void makVrv::DtSimObjectEntryCollection< T >::onSimObjectEntryAboutToBeRemoved | ( | DtSimObjectEntry & | entry | ) | [protected] |
Called when a DtSimObjectEntry is about to be removed.
References makVrv::DtSimEntry::id().
| bool makVrv::DtSimObjectEntryCollection< T >::isCompatible | ( | DtSimObjectEntry & | entry | ) | [protected] |
Returns true if the DtSimEntry contains a state of type T.
References makVrv::DtStateView< StateType >::isCompatible().
| void makVrv::DtSimObjectEntryCollection< T >::populateFromExistingEntries | ( | ) | [protected] |
Go through existing DtSimEntry's and populate this container.
Referenced by makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection().
| DtSimObjectEntryCollection& makVrv::DtSimObjectEntryCollection< T >::operator= | ( | const DtSimObjectEntryCollection< T > & | ) | [private] |
| boost::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAdded |
Signal emitted when a DtSimObjectEntry is added.
| boost::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAboutToBeRemoved |
Signal emitted when a DtSimObjectEntry is about to be removed.
DtDe& makVrv::DtSimObjectEntryCollection< T >::myDe [protected] |
SimObjectEntryMap makVrv::DtSimObjectEntryCollection< T >::mySimObjectEntryMap [protected] |