ariba::utility::Demultiplexer< S, T > Class Template Reference

#include <source/ariba/utility/misc/Demultiplexer.hpp>

Collaboration diagram for ariba::utility::Demultiplexer< S, T >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef list< S > OneList
typedef list< T > TwoList

Public Member Functions

 Demultiplexer ()
 ~Demultiplexer ()
void registerItem (S id, T listener)
void unregisterItem (S id)
void unregisterItem (T listener)
get (T listener)
get (S id)
bool contains (T listener)
bool contains (S id)
OneList getOneList ()
TwoList getTwoList ()

Private Types

typedef map< S, T > SERVICE_LISTENER_MAP
typedef pair< S, T > SERVICE_LISTENER_PAIR
typedef
SERVICE_LISTENER_MAP::iterator 
SERVICE_LISTENER_MAP_ITERATOR
typedef
SERVICE_LISTENER_MAP::const_iterator 
SERVICE_LISTENER_MAP_CITERATOR
typedef map< T, S > LISTENER_SERVICE_MAP
typedef pair< T, S > LISTENER_SERVICE_PAIR
typedef
LISTENER_SERVICE_MAP::iterator 
LISTENER_SERVICE_MAP_ITERATOR
typedef
LISTENER_SERVICE_MAP::const_iterator 
LISTENER_SERVICE_MAP_CITERATOR

Private Member Functions

void debugprint ()

Private Attributes

SERVICE_LISTENER_MAP mapServiceListener
LISTENER_SERVICE_MAP mapListenerService
boost::mutex mapMutex


Detailed Description

template<typename S, typename T>
class ariba::utility::Demultiplexer< S, T >

Definition at line 59 of file Demultiplexer.hpp.


Member Typedef Documentation

template<typename S, typename T>
typedef map<S,T> ariba::utility::Demultiplexer< S, T >::SERVICE_LISTENER_MAP [private]

Definition at line 63 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef pair<S,T> ariba::utility::Demultiplexer< S, T >::SERVICE_LISTENER_PAIR [private]

Definition at line 64 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef SERVICE_LISTENER_MAP::iterator ariba::utility::Demultiplexer< S, T >::SERVICE_LISTENER_MAP_ITERATOR [private]

Definition at line 65 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef SERVICE_LISTENER_MAP::const_iterator ariba::utility::Demultiplexer< S, T >::SERVICE_LISTENER_MAP_CITERATOR [private]

Definition at line 66 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef map<T,S> ariba::utility::Demultiplexer< S, T >::LISTENER_SERVICE_MAP [private]

Definition at line 68 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef pair<T,S> ariba::utility::Demultiplexer< S, T >::LISTENER_SERVICE_PAIR [private]

Definition at line 69 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef LISTENER_SERVICE_MAP::iterator ariba::utility::Demultiplexer< S, T >::LISTENER_SERVICE_MAP_ITERATOR [private]

Definition at line 70 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef LISTENER_SERVICE_MAP::const_iterator ariba::utility::Demultiplexer< S, T >::LISTENER_SERVICE_MAP_CITERATOR [private]

Definition at line 71 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef list<S> ariba::utility::Demultiplexer< S, T >::OneList

Definition at line 156 of file Demultiplexer.hpp.

template<typename S, typename T>
typedef list<T> ariba::utility::Demultiplexer< S, T >::TwoList

Definition at line 157 of file Demultiplexer.hpp.


Constructor & Destructor Documentation

template<typename S, typename T>
ariba::utility::Demultiplexer< S, T >::Demultiplexer (  )  [inline]

Definition at line 99 of file Demultiplexer.hpp.

template<typename S, typename T>
ariba::utility::Demultiplexer< S, T >::~Demultiplexer (  )  [inline]

Definition at line 102 of file Demultiplexer.hpp.


Member Function Documentation

template<typename S, typename T>
void ariba::utility::Demultiplexer< S, T >::debugprint (  )  [inline, private]

Definition at line 77 of file Demultiplexer.hpp.

template<typename S, typename T>
void ariba::utility::Demultiplexer< S, T >::registerItem ( id,
listener 
) [inline]

Definition at line 105 of file Demultiplexer.hpp.

template<typename S, typename T>
void ariba::utility::Demultiplexer< S, T >::unregisterItem ( id  )  [inline]

template<typename S, typename T>
void ariba::utility::Demultiplexer< S, T >::unregisterItem ( listener  )  [inline]

Definition at line 122 of file Demultiplexer.hpp.

template<typename S, typename T>
S ariba::utility::Demultiplexer< S, T >::get ( listener  )  [inline]

Definition at line 127 of file Demultiplexer.hpp.

template<typename S, typename T>
T ariba::utility::Demultiplexer< S, T >::get ( id  )  [inline]

Definition at line 134 of file Demultiplexer.hpp.

template<typename S, typename T>
bool ariba::utility::Demultiplexer< S, T >::contains ( listener  )  [inline]

Definition at line 142 of file Demultiplexer.hpp.

template<typename S, typename T>
bool ariba::utility::Demultiplexer< S, T >::contains ( id  )  [inline]

Definition at line 149 of file Demultiplexer.hpp.

template<typename S, typename T>
OneList ariba::utility::Demultiplexer< S, T >::getOneList (  )  [inline]

Definition at line 159 of file Demultiplexer.hpp.

template<typename S, typename T>
TwoList ariba::utility::Demultiplexer< S, T >::getTwoList (  )  [inline]

Definition at line 170 of file Demultiplexer.hpp.


Member Data Documentation

template<typename S, typename T>
SERVICE_LISTENER_MAP ariba::utility::Demultiplexer< S, T >::mapServiceListener [private]

template<typename S, typename T>
LISTENER_SERVICE_MAP ariba::utility::Demultiplexer< S, T >::mapListenerService [private]

template<typename S, typename T>
boost::mutex ariba::utility::Demultiplexer< S, T >::mapMutex [private]


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

Generated on Wed May 27 18:24:07 2009 for Ariba by  doxygen 1.5.6