![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
#include "MemberType.hpp"
Public Member Functions | |
MemberType (const std::string &name, const dds::core::xtypes::DynamicType &type) | |
MemberType (const std::string &name, const dds::core::xtypes::DynamicType &type, const Annotation &annotation) | |
template<typename AnnotationIter > | |
MemberType (const std::string &name, const dds::core::xtypes::DynamicType &type, const AnnotationIter &begin, const AnnotationIter &end) | |
MemberType (const std::string &name, const dds::core::xtypes::DynamicType &type, const std::vector< Annotation > &annotations) | |
MemberType | add_annotation (const Annotation &annotation) |
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 |
MemberType | remove_annotation (const Annotation &annotation) |
const dds::core::xtypes::DynamicType & | type () const |
This class represents a dynamic type member.
Definition at line 64 of file MemberType.hpp.
dds::core::xtypes::MemberType::MemberType | ( | const std::string & | name, |
const dds::core::xtypes::DynamicType & | type | ||
) |
dds::core::xtypes::MemberType::MemberType | ( | const std::string & | name, |
const dds::core::xtypes::DynamicType & | type, | ||
const Annotation & | annotation | ||
) |
dds::core::xtypes::MemberType::MemberType | ( | const std::string & | name, |
const dds::core::xtypes::DynamicType & | type, | ||
const AnnotationIter & | begin, | ||
const AnnotationIter & | end | ||
) |
dds::core::xtypes::MemberType::MemberType | ( | const std::string & | name, |
const dds::core::xtypes::DynamicType & | type, | ||
const std::vector< Annotation > & | annotations | ||
) |
MemberType dds::core::xtypes::MemberType::add_annotation | ( | const Annotation & | annotation | ) |
|
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::core::xtypes::MemberType::name | ( | ) | const |
|
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.
MemberType dds::core::xtypes::MemberType::remove_annotation | ( | const Annotation & | annotation | ) |
const dds::core::xtypes::DynamicType& dds::core::xtypes::MemberType::type | ( | ) | const |