VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtSimData Class Reference

The DtSimData is the repository for simulation specific, read only data. More...

List of all members.

Public Types

typedef boost::unordered_map
< DtUniqueID, DtSimEntry * > 
SimEntryMap
 Map of unique id's to DtSimEntry's.
typedef void(* SignalerAccessorFunction )(DtSimData &)
 The Signaler access function.

Public Member Functions

 DtSimData (DtDe &de)
 CTOR.
 ~DtSimData ()
 DTOR.
void addEntry (DtUniqueID id)
 Create and add a new DtSimObjectEntry to the map.
void removeEntry (DtUniqueID id)
 Remove and a delete a DtSimObjectEntry from the map.
bool addStateToSimEntry (DtUniqueID id, DtSimState *state)
 Add state the DtSimEntry.
bool removeStateFromSimEntry (DtUniqueID id, DtSimState *state)
 Remove state from the DtSimEntry.
const DtSimEntryfindSimEntry (DtUniqueID id) const
 Find DtSimEntry by id.
DtSimEntryfindSimEntry (DtUniqueID id)
 Non-const find for member functions.
const SimEntryMapsimEntryMap ()
 Accessor for the SimEntryMap.
void addStateToSimEvent (DtSimState *state)
 Add state the myEventEntry.
void signalEvent ()
 Emits signal_simEventTriggered with myEventEntry.
void addEventSignaler (SignalerAccessorFunction accessor, DtVirtualBaseClass *instance)
 Add an event signaler, using an accessor function.
DtVirtualBaseClassfindEventSignaler (SignalerAccessorFunction accessor)
 Find an event signaler, using an accessor function.

Public Attributes

boost::signal< void(DtSimObjectEntry &)> signal_simObjectEntryAdded
 Signal emitted when a DtSimObjectEntry is added.
boost::signal< void(DtSimObjectEntry &)> signal_simObjectEntryToBeRemoved
 Signal emitted when a DtSimObjectEntry is about to be removed.
boost::signal< void(DtSimObjectEntry &)> signal_simStateAdded
 Signal emitted when a DtSimState is added to a DtSimEntry.
boost::signal< void(DtSimObjectEntry &)> signal_simStateToBeRemoved
 Signal emitted when a DtSimEntry is about to be removed from a DtSimObjectEntry.
boost::signal< void(DtSimEventEntry &)> signal_simEventTriggered
 Signal emitted when a simulation event occurs.

Protected Types

typedef boost::unordered_map
< SignalerAccessorFunction,
DtVirtualBaseClass * > 
SignalerMap

Protected Member Functions

DtSimEventEntryentry ()
 Get the sim event entry.

Protected Attributes

DtDemyDe
SimEntryMap mySimEntryMap
DtSimEventEntrymyEventEntry
SignalerMap myEventSignalers

Detailed Description

The DtSimData is the repository for simulation specific, read only data.

The DtSimData has a map of DtSimEntry's indexed by unique id. The DtSimData will also signal when objects have been created/ destroyed or when events happen.


Member Typedef Documentation

typedef boost::unordered_map<DtUniqueID, DtSimEntry*> makVrv::DtSimData::SimEntryMap

Map of unique id's to DtSimEntry's.

The Signaler access function.

typedef boost::unordered_map<SignalerAccessorFunction, DtVirtualBaseClass*> makVrv::DtSimData::SignalerMap [protected]

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Create and add a new DtSimObjectEntry to the map.

Remove and a delete a DtSimObjectEntry from the map.

Add state the DtSimEntry.

The memory is still owned by the DtSimStateObject.

Remove state from the DtSimEntry.

The memory is still owned by the DtSimStateObject.

Find DtSimEntry by id.

Non-const find for member functions.

Accessor for the SimEntryMap.

Add state the myEventEntry.

The memory is still owned by the DtSimStateObject.

Emits signal_simEventTriggered with myEventEntry.

Call after state has been added to it. Clears myEventEntry after the signal has been emitted.

Add an event signaler, using an accessor function.

Find an event signaler, using an accessor function.

Get the sim event entry.


Member Data Documentation

Signal emitted when a simulation event occurs.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)