|
RTI Connext Modern C++ API
Version 6.0.0
|
The base class of types that have members and an extensibility kind. More...
#include <DynamicTypeImpl.hpp>
Public Types | |
| typedef MemberType | Member |
| The member type (specified by the subclasses of this class) | |
| typedef uint32_t | MemberIndex |
| The meber index type. | |
Public Member Functions | |
| dds::core::xtypes::ExtensibilityKind | extensibility_kind () const |
| Gets the extensibility kind. | |
| size_t | member_count () const |
| Gets the number of members. | |
| const MemberType & | member (MemberIndex index) const |
| Gets a member by its index. | |
| const MemberType & | member (const std::string &name) const |
| Gets a member by its name. | |
| MemberIndex | find_member_by_name (const std::string &name) const |
| Obtains the member index from its name. | |
| std::vector< MemberType > | members () const |
| Gets a copy of all the members. | |
| uint32_t | cdr_serialized_sample_max_size (dds::core::policy::DataRepresentationId representation_id=DDS_AUTO_DATA_REPRESENTATION) const |
| Gets the maximum serialized size of samples of this type. | |
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. | |
Static Public Attributes | |
| static OMG_DDS_API_CLASS_VARIABLE const MemberIndex | INVALID_INDEX |
| Indicates that a member doesn't exist. | |
Additional Inherited Members | |
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 | |
The base class of types that have members and an extensibility kind.
| MemberType | The concrete member type, specified by the subclasses, can be Member, UnionMember and EnumMember |
This is the base class of StructType, UnionType and EnumType.
| typedef MemberType dds::core::xtypes::AbstractConstructedType< MemberType >::Member |
The member type (specified by the subclasses of this class)
| typedef uint32_t dds::core::xtypes::AbstractConstructedType< MemberType >::MemberIndex |
The meber index type.
| dds::core::xtypes::ExtensibilityKind dds::core::xtypes::AbstractConstructedType< MemberType >::extensibility_kind | ( | ) | const |
Gets the extensibility kind.
| size_t dds::core::xtypes::AbstractConstructedType< MemberType >::member_count | ( | ) | const |
Gets the number of members.
| const MemberType& dds::core::xtypes::AbstractConstructedType< MemberType >::member | ( | MemberIndex | index | ) | const |
Gets a member by its index.
| index | The index of the member (0 to member_count() - 1) |
| const MemberType& dds::core::xtypes::AbstractConstructedType< MemberType >::member | ( | const std::string & | name | ) | const |
Gets a member by its name.
| MemberIndex dds::core::xtypes::AbstractConstructedType< MemberType >::find_member_by_name | ( | const std::string & | name | ) | const |
Obtains the member index from its name.
| std::vector<MemberType> dds::core::xtypes::AbstractConstructedType< MemberType >::members | ( | ) | const |
Gets a copy of all the members.
| uint32_t dds::core::xtypes::AbstractConstructedType< MemberType >::cdr_serialized_sample_max_size | ( | dds::core::policy::DataRepresentationId | representation_id = DDS_AUTO_DATA_REPRESENTATION | ) | const |
Gets the maximum serialized size of samples of this type.
Obtains the maximum possible size in bytes of any serialized data sample of this type.
| representation_id | The serialized data representation for which we calculate the maximum size. |
|
static |
Indicates that a member doesn't exist.