OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Private Attributes | List of all members
OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr Class Reference

#include <DataReaderImpl.h>

Collaboration diagram for OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr:
Collaboration graph
[legend]

Public Member Functions

 OwnershipManagerPtr (DataReaderImpl *reader)
 
 operator bool () const
 
OwnershipManageroperator-> () const
 

Private Attributes

RcHandle< DomainParticipantImplparticipant_
 

Detailed Description

Definition at line 465 of file DataReaderImpl.h.

Constructor & Destructor Documentation

◆ OwnershipManagerPtr()

OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr::OwnershipManagerPtr ( DataReaderImpl reader)
inline

Definition at line 468 of file DataReaderImpl.h.

469  : participant_( (reader && reader->is_exclusive_ownership_) ? reader->participant_servant_.lock() : RcHandle<DomainParticipantImpl>())
470  {
471  }
RcHandle< DomainParticipantImpl > participant_

Member Function Documentation

◆ operator bool()

OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr::operator bool ( ) const
inline

Definition at line 472 of file DataReaderImpl.h.

472 { return participant_.in(); }
RcHandle< DomainParticipantImpl > participant_

◆ operator->()

OwnershipManager* OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr::operator-> ( void  ) const
inline

Definition at line 473 of file DataReaderImpl.h.

474  {
475  return participant_ ? participant_->ownership_manager() : 0;
476  }
RcHandle< DomainParticipantImpl > participant_

Member Data Documentation

◆ participant_

RcHandle<DomainParticipantImpl> OpenDDS::DCPS::DataReaderImpl::OwnershipManagerPtr::participant_
private

Definition at line 479 of file DataReaderImpl.h.


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