Public Member Functions | Private Types | Private Attributes | List of all members
RTC::PortActionListenerHolder Class Reference

PortActionListener holder class. More...

#include <ComponentActionListener.h>

Public Member Functions

void addListener (PortActionListener *listener, bool autoclean)
 Add the listener. More...
void notify (const RTC::PortProfile &pprofile)
 Notify listeners. More...
 PortActionListenerHolder ()
 Constructor. More...
void removeListener (PortActionListener *listener)
 Remove the listener. More...
virtual ~PortActionListenerHolder ()
 Destructor. More...

Private Types

typedef std::pair< PortActionListener *, bool > Entry
typedef coil::Guard< coil::MutexGuard

Private Attributes

std::vector< Entrym_listeners
coil::Mutex m_mutex

Detailed Description

PortActionListener holder class.

This class manages one ore more instances of PortActionListener class.

Definition at line 808 of file ComponentActionListener.h.

Member Typedef Documentation

typedef std::pair<PortActionListener*, bool> RTC::PortActionListenerHolder::Entry

Definition at line 810 of file ComponentActionListener.h.

Definition at line 811 of file ComponentActionListener.h.

Constructor & Destructor Documentation

RTC::PortActionListenerHolder::PortActionListenerHolder ( )


Definition at line 204 of file ComponentActionListener.cpp.

RTC::PortActionListenerHolder::~PortActionListenerHolder ( )


Definition at line 209 of file ComponentActionListener.cpp.

Member Function Documentation

void RTC::PortActionListenerHolder::addListener ( PortActionListener listener,
bool  autoclean 

Add the listener.

This method adds the listener.

listenerAdded listener
autocleantrue:The listener is deleted at the destructor., false:The listener is not deleted at the destructor.

Definition at line 222 of file ComponentActionListener.cpp.

void RTC::PortActionListenerHolder::notify ( const RTC::PortProfile &  pprofile)

Notify listeners.

This calls the Callback method of the registered listener.


Definition at line 251 of file ComponentActionListener.cpp.

void RTC::PortActionListenerHolder::removeListener ( PortActionListener listener)

Remove the listener.

This method removes the listener.

listenerRemoved listener

Definition at line 230 of file ComponentActionListener.cpp.

Member Data Documentation

std::vector<Entry> RTC::PortActionListenerHolder::m_listeners

Definition at line 894 of file ComponentActionListener.h.

coil::Mutex RTC::PortActionListenerHolder::m_mutex

Definition at line 895 of file ComponentActionListener.h.

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

Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:04