VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
DtPublisherList< Publisher > Class Template Reference

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.

Public Member Functions

 DtPublisherList ()
 constructor
 ~DtPublisherList ()
 destructor
void tick ()
 Ticks all of the publishers.
void add (Publisher *pub)
 add a publisher to the list
void add (Publisher *pub, const std::string &id)
 add a publisher to the list with a specific identifier
void remove (Publisher *pub)
 remove the publisher from the list
void remove (const std::string &id)
 remove the publisher from the list
Publisher * find (std::string id)
 find a particular object publisher in the list
void addPublisherAddedDelegate (DtPublisherListDelegate *del)
 add a callback for when a publisher is added to the list
void removePublisherAddedDelegate (DtPublisherListDelegate *del)
 remove a callback for when a publisher is added to the list
void addPublisherRemovedDelegate (DtPublisherListDelegate *del)
 add a callback for when a publisher is removed from the list
void removePublisherRemovedDelegate (DtPublisherListDelegate *del)
 remove a callback for when a publisher is removed from the list
std::map< std::string,
Publisher * >::iterator 
begin ()
 Get the beginning of the list for iteration.
std::map< std::string,
Publisher * >::iterator 
end ()
 Get the end of the list for iteration.
void clear ()
 Clears the list and all delegates. This will release the memory used by the delegates or object publishers.

Protected Attributes

std::map< std::string,
Publisher * > 
myPublishers
std::list
< DtPublisherListDelegate * > 
myAddedDelegates
std::list
< DtPublisherListDelegate * > 
myRemovedDelegates

Detailed Description

template<typename Publisher>
class DtPublisherList< Publisher >

Defines the DtPublisherList template. The parameter is the VR-Link Publisher object class type.

Member Typedef Documentation

template<typename Publisher>
typedef DtDelegate<void, Publisher*> DtPublisherList< Publisher >::DtPublisherListDelegate

Defines a delegate that has a Publisher object pointer as a parameter and returns a void type.

Constructor & Destructor Documentation

template<typename Publisher>
DtPublisherList< Publisher >::DtPublisherList ( )
inline

constructor

template<typename Publisher>
DtPublisherList< Publisher >::~DtPublisherList ( )
inline

destructor

Member Function Documentation

template<typename Publisher>
void DtPublisherList< Publisher >::add ( Publisher *  pub)
inline

add a publisher to the list

template<typename Publisher>
void DtPublisherList< Publisher >::add ( Publisher *  pub,
const std::string &  id 
)
inline

add a publisher to the list with a specific identifier

template<typename Publisher>
void DtPublisherList< Publisher >::addPublisherAddedDelegate ( DtPublisherListDelegate del)
inline

add a callback for when a publisher is added to the list

template<typename Publisher>
void DtPublisherList< Publisher >::addPublisherRemovedDelegate ( DtPublisherListDelegate del)
inline

add a callback for when a publisher is removed from the list

template<typename Publisher>
std::map< std::string, Publisher* >::iterator DtPublisherList< Publisher >::begin ( )
inline

Get the beginning of the list for iteration.

template<typename Publisher>
void DtPublisherList< Publisher >::clear ( )
inline

Clears the list and all delegates. This will release the memory used by the delegates or object publishers.

Referenced by DtPublisherList< DtRadioReceiverPublisher >::~DtPublisherList().

template<typename Publisher>
std::map< std::string, Publisher*>::iterator DtPublisherList< Publisher >::end ( )
inline

Get the end of the list for iteration.

template<typename Publisher>
Publisher* DtPublisherList< Publisher >::find ( std::string  id)
inline

find a particular object publisher in the list

template<typename Publisher>
void DtPublisherList< Publisher >::remove ( Publisher *  pub)
inline

remove the publisher from the list

template<typename Publisher>
void DtPublisherList< Publisher >::remove ( const std::string &  id)
inline

remove the publisher from the list

template<typename Publisher>
void DtPublisherList< Publisher >::removePublisherAddedDelegate ( DtPublisherListDelegate del)
inline

remove a callback for when a publisher is added to the list

template<typename Publisher>
void DtPublisherList< Publisher >::removePublisherRemovedDelegate ( DtPublisherListDelegate del)
inline

remove a callback for when a publisher is removed from the list

template<typename Publisher>
void DtPublisherList< Publisher >::tick ( )
inline

Ticks all of the publishers.

Member Data Documentation

template<typename Publisher>
std::list<DtPublisherListDelegate*> DtPublisherList< Publisher >::myAddedDelegates
protected
template<typename Publisher>
std::map< std::string, Publisher*> DtPublisherList< Publisher >::myPublishers
protected
template<typename Publisher>
std::list<DtPublisherListDelegate*> DtPublisherList< Publisher >::myRemovedDelegates
protected

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

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)