RTI Connext Modern C++ API
Version 6.1.1
|
<<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. More... | |
const dds::core::xtypes::DynamicType & | related_type () const |
Gets the related type. More... | |
bool | is_pointer () const |
<<extension>> Gets whether this alias makes related_type a pointer. More... | |
![]() | |
dds::core::xtypes::TypeKind | kind () const |
Gets the type kind. More... | |
std::string | name () const |
Gets the name. More... | |
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. More... | |
![]() | |
bool | is_primitive_type (const DynamicType &t) |
Determines if a DynamicType is a PrimitiveType. More... | |
bool | is_constructed_type (const DynamicType &t) |
Determines if a DynamicType is a constructed type. More... | |
bool | is_collection_type (const DynamicType &t) |
Determines if a DynamicType is a CollectionType. More... | |
bool | is_aggregation_type (const DynamicType &t) |
Determines if a DynamicType is an aggregation type. More... | |
std::ostream & | operator<< (std::ostream &out, const DynamicType &type) |
<<extension>> Converts the DynamicType to a string. More... | |
void | print_idl (const DynamicType &type, unsigned int indent=0) |
<<extension>> Prints the IDL representation of this DynamicType to the standard output More... | |
std::ostream & | to_string (std::ostream &out, const DynamicType &type, const rti::core::xtypes::DynamicTypePrintFormatProperty &format=DynamicTypePrintFormatProperty()) |
<<extension>> Writes the string representation of this DynamicType to an output stream. More... | |
std::string | to_string (const DynamicType &type, const rti::core::xtypes::DynamicTypePrintFormatProperty &format=DynamicTypePrintFormatProperty()) |
<<extension>> Creates the string representation of this DynamicType to a string. More... | |
<<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.