RTI Connext Modern C++ API
Version 6.0.0
|
<<value-type>> Represents and IDL typedef
More...
#include <dds/core/xtypes/AliasType.hpp>
Public Member Functions | |
AliasType (const std::string &name, const DynamicTypeImpl &related_type, bool is_pointer=false) | |
Creates an alias with a name and a related type. | |
const dds::core::xtypes::DynamicType & | related_type () const |
Gets the related type. | |
bool | is_pointer () const |
<<extension>> Gets whether this alias makes related_type a pointer. | |
Public Member Functions inherited from dds::core::xtypes::DynamicType | |
dds::core::xtypes::TypeKind | kind () const |
Gets the type kind. | |
std::string | name () const |
Gets the name. | |
Related Functions | |
(Note that these are not member functions.) | |
const dds::core::xtypes::DynamicType & | resolve_alias (const dds::core::xtypes::DynamicType &type) |
<<extension>> If the type is an alias returns its related type recursively until it is not an alias. | |
Related Functions inherited from dds::core::xtypes::DynamicType | |
bool | is_primitive_type (const DynamicType &t) |
Determines if a DynamicType is a PrimitiveType. | |
bool | is_constructed_type (const DynamicType &t) |
Determines if a DynamicType is a constructed type. | |
bool | is_collection_type (const DynamicType &t) |
Determines if a DynamicType is a CollectionType. | |
bool | is_aggregation_type (const DynamicType &t) |
Determines if a DynamicType is an aggregation type. | |
void | print_idl (const DynamicType &type, unsigned int indent=0) |
<<extension>> Prints the IDL representation of this type to the standard output | |
<<value-type>> Represents and IDL typedef
dds::core::xtypes::AliasType::AliasType | ( | const std::string & | name, |
const DynamicTypeImpl & | related_type, | ||
bool | is_pointer = false |
||
) |
Creates an alias with a name and a related type.
name | The name of this alias |
related_type | The aliased type |
is_pointer | Whether this alias makes the type a pointer |
For example, to create the following two IDL aliases:
We can use the following code:
const dds::core::xtypes::DynamicType& dds::core::xtypes::AliasType::related_type | ( | ) | const |
Gets the related type.
bool dds::core::xtypes::AliasType::is_pointer | ( | ) | const |
<<extension>> Gets whether this alias makes related_type a pointer.
|
related |
<<extension>> If the type is an alias returns its related type recursively until it is not an alias.