Class DynamicType

Class Documentation

class DynamicType

Public Functions

RTPS_DllAPI bool equals (const DynamicType *other) const
RTPS_DllAPI ReturnCode_t get_all_members (std::map< MemberId, DynamicTypeMember * > &members)
RTPS_DllAPI ReturnCode_t get_all_members_by_name (std::map< std::string, DynamicTypeMember * > &members)
RTPS_DllAPI uint32_t get_bounds (uint32_t index=0) const
RTPS_DllAPI uint32_t get_bounds_size () const
RTPS_DllAPI ReturnCode_t get_descriptor (TypeDescriptor *descriptor) const
RTPS_DllAPI const TypeDescriptor * get_descriptor () const
RTPS_DllAPI TypeDescriptor * get_descriptor ()
RTPS_DllAPI bool key_annotation () const
inline RTPS_DllAPI TypeKind get_kind () const
RTPS_DllAPI std::string get_name () const
RTPS_DllAPI MemberId get_members_count () const
RTPS_DllAPI uint32_t get_total_bounds () const
inline RTPS_DllAPI const TypeDescriptor * get_type_descriptor () const
RTPS_DllAPI bool has_children () const
RTPS_DllAPI bool is_consistent () const
RTPS_DllAPI bool is_complex_kind () const
RTPS_DllAPI bool is_discriminator_type () const
RTPS_DllAPI size_t get_size () const

Protected Functions

DynamicType()
RTPS_DllAPI DynamicType(const TypeDescriptor *descriptor)
DynamicType(const DynamicTypeBuilder *other)
virtual RTPS_DllAPI ~DynamicType()
virtual RTPS_DllAPI void clear ()
ReturnCode_t copy_from_builder(const DynamicTypeBuilder *other)
bool exists_member_by_name(const std::string &name) const
void set_name(const std::string &name)
ReturnCode_t apply_annotation(AnnotationDescriptor &descriptor)
ReturnCode_t apply_annotation(const std::string &annotation_name, const std::string &key, const std::string &value)
ReturnCode_t apply_annotation_to_member(MemberId id, AnnotationDescriptor &descriptor)
ReturnCode_t apply_annotation_to_member(MemberId id, const std::string &annotation_name, const std::string &key, const std::string &value)
ReturnCode_t get_annotation(AnnotationDescriptor &descriptor, uint32_t idx)
uint32_t get_annotation_count()
DynamicType_ptr get_base_type() const
DynamicType_ptr get_discriminator_type() const
DynamicType_ptr get_element_type() const
DynamicType_ptr get_key_element_type() const
ReturnCode_t get_member(DynamicTypeMember &member, MemberId id)
ReturnCode_t get_member_by_name(DynamicTypeMember &member, const std::string &name)

Protected Attributes

TypeDescriptor *descriptor_
std::map<MemberId, DynamicTypeMember*> member_by_id_
std::map<std::string, DynamicTypeMember*> member_by_name_
std::string name_
TypeKind kind_
bool is_key_defined_

Friends

friend class DynamicTypeBuilder
friend class DynamicTypeBuilderFactory
friend class MemberDescriptor
friend class TypeDescriptor
friend class DynamicData
friend class DynamicDataFactory
friend class AnnotationDescriptor
friend class TypeObjectFactory
friend class DynamicTypeMember
friend class DynamicDataHelper
friend class fastdds::dds::DomainParticipantImpl