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. 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
 

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 Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)