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

ExecutionContextActionListener holder class. More...

#include <ComponentActionListener.h>

Public Member Functions

void addListener (ExecutionContextActionListener *listener, bool autoclean)
 Add the listener. More...
 
 ExecutionContextActionListenerHolder ()
 Constructor. More...
 
void notify (UniqueId ec_id)
 Notify listeners. More...
 
void removeListener (ExecutionContextActionListener *listener)
 Remove the listener. More...
 
virtual ~ExecutionContextActionListenerHolder ()
 Destructor. More...
 

Private Types

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

Private Attributes

std::vector< Entrym_listeners
 
coil::Mutex m_mutex
 

Detailed Description

ExecutionContextActionListener holder class.

This class manages one ore more instances of ExecutionContextActionListener class.

Definition at line 914 of file ComponentActionListener.h.

Member Typedef Documentation

◆ Entry

Definition at line 916 of file ComponentActionListener.h.

◆ Guard

Definition at line 917 of file ComponentActionListener.h.

Constructor & Destructor Documentation

◆ ExecutionContextActionListenerHolder()

RTC::ExecutionContextActionListenerHolder::ExecutionContextActionListenerHolder ( )

Constructor.

Definition at line 269 of file ComponentActionListener.cpp.

◆ ~ExecutionContextActionListenerHolder()

RTC::ExecutionContextActionListenerHolder::~ExecutionContextActionListenerHolder ( )
virtual

Destructor.

Definition at line 274 of file ComponentActionListener.cpp.

Member Function Documentation

◆ addListener()

void RTC::ExecutionContextActionListenerHolder::addListener ( ExecutionContextActionListener listener,
bool  autoclean 
)

Add the listener.

This method adds the listener.

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

Definition at line 288 of file ComponentActionListener.cpp.

◆ notify()

void RTC::ExecutionContextActionListenerHolder::notify ( UniqueId  ec_id)

Notify listeners.

This calls the Callback method of the registered listener.

Parameters
infoConnectorInfo
cdrdataData

Definition at line 318 of file ComponentActionListener.cpp.

◆ removeListener()

void RTC::ExecutionContextActionListenerHolder::removeListener ( ExecutionContextActionListener listener)

Remove the listener.

This method removes the listener.

Parameters
listenerRemoved listener

Definition at line 297 of file ComponentActionListener.cpp.

Member Data Documentation

◆ m_listeners

std::vector<Entry> RTC::ExecutionContextActionListenerHolder::m_listeners
private

Definition at line 1000 of file ComponentActionListener.h.

◆ m_mutex

coil::Mutex RTC::ExecutionContextActionListenerHolder::m_mutex
private

Definition at line 1001 of file ComponentActionListener.h.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Feb 28 2022 23:00:47