OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::TransportImpl::DoClear Struct Reference

#include <TransportImpl.h>

Inheritance diagram for OpenDDS::DCPS::TransportImpl::DoClear:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::TransportImpl::DoClear:
Collaboration graph
[legend]

Public Member Functions

 DoClear (RcHandle< DataLink > link)
 
void handle_event ()
 Called when the event is dispatched by an EventDispatcher. More...
 
- Public Member Functions inherited from OpenDDS::DCPS::EventBase
virtual ~EventBase ()
 
virtual void handle_error ()
 Only called when an exception is caught during handle_event. More...
 
virtual void handle_cancel ()
 
void operator() ()
 
- Public Member Functions inherited from OpenDDS::DCPS::RcObject
virtual ~RcObject ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
long ref_count () const
 
WeakObject_get_weak_object () const
 

Public Attributes

WeakRcHandle< DataLinklink_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenDDS::DCPS::RcObject
 RcObject ()
 

Detailed Description

Definition at line 303 of file TransportImpl.h.

Constructor & Destructor Documentation

◆ DoClear()

OpenDDS::DCPS::TransportImpl::DoClear::DoClear ( RcHandle< DataLink link)
inlineexplicit

Definition at line 304 of file TransportImpl.h.

304 : link_(link) {}
WeakRcHandle< DataLink > link_

Member Function Documentation

◆ handle_event()

void OpenDDS::DCPS::TransportImpl::DoClear::handle_event ( )
inlinevirtual

Called when the event is dispatched by an EventDispatcher.

Implements OpenDDS::DCPS::EventBase.

Definition at line 305 of file TransportImpl.h.

References OpenDDS::DCPS::DataLink::clear_associations().

306  {
307  DataLink_rch link = link_.lock();
308  if (link) {
309  link->clear_associations();
310  }
311  }
WeakRcHandle< DataLink > link_
RcHandle< DataLink > DataLink_rch
The type definition for the smart-pointer to the underlying type.
Definition: DataLink_rch.h:34

Member Data Documentation

◆ link_

WeakRcHandle<DataLink> OpenDDS::DCPS::TransportImpl::DoClear::link_

Definition at line 312 of file TransportImpl.h.


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