![]() |
VR-Link API Documentation for DIS
|
Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate. More...
Collaboration diagram for DtDisObjectManager:Public Member Functions | |
| DtDisObjectManager () | |
| constructor More... | |
| ~DtDisObjectManager () | |
| destructor More... | |
| virtual const DtList * | localObjects () const |
| Get the list of all DIS objects local to the federate. More... | |
| virtual const DtList * | remoteObjects () const |
| Get the list of all DIS objects discovered by the federate. More... | |
| virtual void | addLocalObject (DtEntityIdentifier &id, DtEntityPublisher *pPub) |
| Add local object to local objects list. More... | |
| virtual void | removeLocalObject (DtEntityIdentifier &id) |
| Remove local object to local objects list. More... | |
| virtual void | addRemoteObject (DtEntityIdentifier &id, DtReflectedEntity *pRef) |
| Add remote object to remote objects list. More... | |
| virtual void | removeRemoteObject (DtEntityIdentifier &id) |
| Remove remote object to remote objects list. More... | |
| virtual DtBaseEntityStateRepository * | stateRepOfObject (const DtEntityIdentifier &id) |
| This returns the state rep of the object independent of whether it's local or remote. More... | |
Protected Member Functions | |
| DtDisObjectManager (const DtDisObjectManager &orig) | |
| Note: The copy constructor and assignment operator are protected because there should only be one object manager per exercise connection. More... | |
| DtDisObjectManager & | operator= (const DtDisObjectManager &orig) |
| assignment operator – not implemented More... | |
Protected Attributes | |
| DtObjectIdHashlist | myLocalObjectList |
| The objects in this list are created and deleted somewhere else. More... | |
| DtObjectIdHashlist | myRemoteObjectList |
| List of all known remote objects (by id). More... | |
Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate.
| DtDisObjectManager::DtDisObjectManager | ( | ) |
constructor
| DtDisObjectManager::~DtDisObjectManager | ( | ) |
destructor
|
protected |
Note: The copy constructor and assignment operator are protected because there should only be one object manager per exercise connection.
These should not be called. copy constructor – not implemented
|
virtual |
Add local object to local objects list.
This is called in the publishers constructor
|
virtual |
Add remote object to remote objects list.
This is called in the reflected entity constructor
|
virtual |
Get the list of all DIS objects local to the federate.
|
protected |
assignment operator – not implemented
|
virtual |
Get the list of all DIS objects discovered by the federate.
|
virtual |
Remove local object to local objects list.
This is called in the publishers destructor.
|
virtual |
Remove remote object to remote objects list.
This is called in the reflected entity destructor.
|
virtual |
This returns the state rep of the object independent of whether it's local or remote.
|
protected |
The objects in this list are created and deleted somewhere else.
They can be added/removed to/from the lists but should not be deleted. List of all known local objects (by id).
|
protected |
List of all known remote objects (by id).