OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
dds::core::InstanceHandle Class Reference

Class to hold the handle associated with in sample instance. More...

#include "InstanceHandle.hpp"

Inheritance diagram for dds::core::InstanceHandle:
Inheritance graph

Public Member Functions

 InstanceHandle ()
 
 InstanceHandle (const dds::core::null_type &nullHandle)
 
 InstanceHandle (const InstanceHandle &other)
 
bool is_nil () const
 
bool operator!= (const Value &other) const
 
D * operator-> ()
 
const D * operator-> () const
 
bool operator< (const InstanceHandle &that) const
 
InstanceHandleoperator= (const InstanceHandle &that)
 
bool operator== (const InstanceHandle &that) const
 
bool operator== (const Value &other) const
 
bool operator> (const InstanceHandle &that) const
 

Static Public Member Functions

static const InstanceHandle nil ()
 

Detailed Description

Class to hold the handle associated with in sample instance.

Definition at line 40 of file InstanceHandle.hpp.

Constructor & Destructor Documentation

◆ InstanceHandle() [1/3]

dds::core::InstanceHandle::InstanceHandle ( )

Create an nil instance handle.

Definition at line 42 of file InstanceHandleImpl.hpp.

◆ InstanceHandle() [2/3]

dds::core::InstanceHandle::InstanceHandle ( const dds::core::null_type nullHandle)

Create an nil instance handle.

Parameters
nullHandleplaceholder

Definition at line 49 of file InstanceHandleImpl.hpp.

◆ InstanceHandle() [3/3]

dds::core::InstanceHandle::InstanceHandle ( const InstanceHandle other)

Copy an existing InstancHandle

Parameters
otherInstanceHandle to copy

Definition at line 52 of file InstanceHandleImpl.hpp.

Member Function Documentation

◆ is_nil()

bool dds::core::InstanceHandle::is_nil ( ) const

Check if the InstanceHandle is nil.

Returns
true if the InstanceHandle is nil

Definition at line 94 of file InstanceHandleImpl.hpp.

◆ nil()

const InstanceHandle dds::core::InstanceHandle::nil ( )
static

Create an nil instance handle.

Returns
a nil InstanceHandle

Definition at line 86 of file InstanceHandleImpl.hpp.

◆ operator!=()

template<typename D >
bool dds::core::Value< D >::operator!= ( const Value< D > &  other) const
inherited

Compare this Value with another Value

Parameters
otherValue
Returns
true if not equal

Definition at line 99 of file Value.hpp.

◆ operator->() [1/2]

template<typename D >
D * dds::core::Value< D >::operator-> ( )
inherited

The operator->() is provided to be able to directly invoke functions on the delegate.

The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:

my_dds_value.standard_function();
my_dds_value->vendor_specific_extension();
Returns
a reference to delegate.

Definition at line 111 of file Value.hpp.

◆ operator->() [2/2]

template<typename D >
const D * dds::core::Value< D >::operator-> ( ) const
inherited

The operator->() is provided to be able to directly invoke functions on the delegate.

The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:

my_dds_value.standard_function();
my_dds_value->vendor_specific_extension();
Returns
a reference to delegate.

Definition at line 105 of file Value.hpp.

◆ operator<()

bool dds::core::InstanceHandle::operator< ( const InstanceHandle that) const

Compare this InstanceHandle to another InstanceHandle

Parameters
thatThe InstanceHandle to compare
Returns
true if this is less than that

Definition at line 74 of file InstanceHandleImpl.hpp.

◆ operator=()

InstanceHandle & dds::core::InstanceHandle::operator= ( const InstanceHandle that)

Assign an existing InstancHandle to this InstancHandle

Parameters
thatThe InstanceHandle to assign to this

Definition at line 58 of file InstanceHandleImpl.hpp.

◆ operator==() [1/2]

bool dds::core::InstanceHandle::operator== ( const InstanceHandle that) const

Compare this InstanceHandle to another InstanceHandle

Parameters
thatThe InstanceHandle to compare
Returns
true if they match

Definition at line 68 of file InstanceHandleImpl.hpp.

◆ operator==() [2/2]

template<typename D >
bool dds::core::Value< D >::operator== ( const Value< D > &  other) const
inherited

Compare this Value with another Value

Parameters
otherValue
Returns
true if equal

Definition at line 93 of file Value.hpp.

◆ operator>()

bool dds::core::InstanceHandle::operator> ( const InstanceHandle that) const

Compare this InstanceHandle to another InstanceHandle

Parameters
thatThe InstanceHandle to compare
Returns
true if this is greater than that

Definition at line 80 of file InstanceHandleImpl.hpp.


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