![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
This class is the base for Topic, ContentFilteredTopic and MultiTopic. More...
#include "TopicDescription.hpp"
Public Member Functions | |
const dds::domain::DomainParticipant & | domain_participant () const |
bool | is_nil () const |
const std::string & | name () const |
template<typename R > | |
bool | operator!= (const R &ref) const |
bool | operator!= (const null_type nil) const |
DELEGATE * | operator-> () |
const DELEGATE * | operator-> () const |
template<typename R > | |
bool | operator== (const R &ref) const |
bool | operator== (const null_type) const |
const std::string & | type_name () const |
This class is the base for Topic, ContentFilteredTopic and MultiTopic.
The TopicDescription attribute type_name defines an unique data type that is made available to the Data Distribution Service when a Topic is created with that type.
TopicDescription has also a name that allows it to be retrieved locally.
Definition at line 47 of file TopicDescription.hpp.
const dds::domain::DomainParticipant & dds::topic::TopicDescription::domain_participant | ( | ) | const |
This operation returns the DomainParticipant associated with the TopicDescription.
Note that there is exactly one DomainParticipant associated with each TopicDescription.
Definition at line 62 of file TopicDescriptionImpl.hpp.
|
inherited |
Check if the referenced object is nil.
In other words, check if the reference is pointing to a null object.
Definition at line 143 of file ReferenceImpl.hpp.
const std::string & dds::topic::TopicDescription::name | ( | ) | const |
This operation returns the name used to create the TopicDescription.
Definition at line 46 of file TopicDescriptionImpl.hpp.
|
inherited |
Compares two Reference objects and returns true if they are not equal.
Inequality is based on the referential inequality of the object being pointed to.
ref | the other Reference object |
Definition at line 100 of file ReferenceImpl.hpp.
|
inherited |
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:
Definition at line 157 of file ReferenceImpl.hpp.
|
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 Reference and on all its subclasses as follows:
Definition at line 180 of file ReferenceImpl.hpp.
|
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 Reference and on all its subclasses as follows:
Definition at line 188 of file ReferenceImpl.hpp.
|
inherited |
Compares two Reference objects and returns true if they are equal.
Equality is based on the referential equality of the object being pointed.
ref | the other Reference object |
Definition at line 83 of file ReferenceImpl.hpp.
|
inherited |
Special operator== used to check if this reference object equals the dds::core::null reference.
The null-check can be done like this:
Definition at line 150 of file ReferenceImpl.hpp.
const std::string & dds::topic::TopicDescription::type_name | ( | ) | const |
This operation returns the registered name of the data type associated with the TopicDescription.
Definition at line 54 of file TopicDescriptionImpl.hpp.