![]() |
VR-Link API Documentation for DIS
|
Defines the DtPublisherList template. The parameter is the VR-Link Publisher object class type. More...
Inheritance diagram for DtPublisherList< Publisher >:
Collaboration diagram for DtPublisherList< Publisher >:Public Types | |
| typedef DtDelegate< void, Publisher * > | DtPublisherListDelegate |
| Defines a delegate that has a Publisher object pointer as a parameter and returns a void type. More... | |
Public Member Functions | |
| DtPublisherList () | |
| constructor More... | |
| ~DtPublisherList () | |
| destructor More... | |
| void | tick () |
| Ticks all of the publishers. More... | |
| void | add (Publisher *pub) |
| add a publisher to the list More... | |
| void | add (Publisher *pub, const std::string &id) |
| add a publisher to the list with a specific identifier More... | |
| void | remove (Publisher *pub) |
| remove the publisher from the list More... | |
| void | remove (const std::string &id) |
| remove the publisher from the list More... | |
| Publisher * | find (std::string id) |
| find a particular object publisher in the list More... | |
| void | addPublisherAddedDelegate (DtPublisherListDelegate *del) |
| add a callback for when a publisher is added to the list More... | |
| void | removePublisherAddedDelegate (DtPublisherListDelegate *del) |
| remove a callback for when a publisher is added to the list More... | |
| void | addPublisherRemovedDelegate (DtPublisherListDelegate *del) |
| add a callback for when a publisher is removed from the list More... | |
| void | removePublisherRemovedDelegate (DtPublisherListDelegate *del) |
| remove a callback for when a publisher is removed from the list More... | |
| std::map< std::string, Publisher * >::iterator | begin () |
| Get the beginning of the list for iteration. More... | |
| std::map< std::string, Publisher * >::iterator | end () |
| Get the end of the list for iteration. More... | |
| void | clear () |
| Clears the list and all delegates. This will release the memory used by the delegates or object publishers. More... | |
Protected Attributes | |
| std::map< std::string, Publisher * > | myPublishers |
| std::list < DtPublisherListDelegate * > | myAddedDelegates |
| std::list < DtPublisherListDelegate * > | myRemovedDelegates |
Defines the DtPublisherList template. The parameter is the VR-Link Publisher object class type.
| typedef DtDelegate<void, Publisher*> DtPublisherList< Publisher >::DtPublisherListDelegate |
Defines a delegate that has a Publisher object pointer as a parameter and returns a void type.
|
inline |
constructor
|
inline |
destructor
|
inline |
add a publisher to the list
|
inline |
add a publisher to the list with a specific identifier
|
inline |
add a callback for when a publisher is added to the list
|
inline |
add a callback for when a publisher is removed from the list
|
inline |
Get the beginning of the list for iteration.
|
inline |
Clears the list and all delegates. This will release the memory used by the delegates or object publishers.
Referenced by DtPublisherList< DtRadioReceiverPublisher >::~DtPublisherList().
|
inline |
Get the end of the list for iteration.
|
inline |
find a particular object publisher in the list
|
inline |
remove the publisher from the list
|
inline |
remove the publisher from the list
|
inline |
remove a callback for when a publisher is added to the list
|
inline |
remove a callback for when a publisher is removed from the list
|
inline |
Ticks all of the publishers.
|
protected |
|
protected |
Referenced by DtPublisherList< DtRadioReceiverPublisher >::add(), DtPublisherList< DtRadioReceiverPublisher >::begin(), DtPublisherList< DtRadioReceiverPublisher >::clear(), DtPublisherList< DtRadioReceiverPublisher >::end(), DtPublisherList< DtRadioReceiverPublisher >::find(), DtPublisherList< DtRadioReceiverPublisher >::remove(), and DtPublisherList< DtRadioReceiverPublisher >::tick().
|
protected |