OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
ReferenceImpl.hpp File Reference
#include <dds/core/Reference.hpp>
#include <org/opensplice/core/ReportUtils.hpp>

Go to the source code of this file.

Functions

template<class D >
bool operator!= (dds::core::null_type, const dds::core::Reference< D > &r)
 
template<class D >
bool operator== (dds::core::null_type, const dds::core::Reference< D > &r)
 

Function Documentation

◆ operator!=()

template<class D >
bool operator!= ( dds::core::null_type  ,
const dds::core::Reference< D > &  r 
)

Special operator!= used to check if this reference object does not equal the dds::core::null reference.

The non-null-check can be done like this:

if (dds::core::null != r) {
// Use the dds reference object r
}
Returns
true if this reference is not null.

Definition at line 222 of file ReferenceImpl.hpp.

◆ operator==()

template<class D >
bool operator== ( dds::core::null_type  ,
const dds::core::Reference< D > &  r 
)

Special operator== used to check if this reference object does not equal the dds::core::null reference.

The non-null-check can be done like this:

if (dds::core::null == r) {
// Do not use the dds reference object r in its current state
}
Returns
true if this reference is not null.

Definition at line 217 of file ReferenceImpl.hpp.