#include <MemberDescriptor.hpp>
Public Types | |
using | _ref_type = typename traits< MemberDescriptor >::ref_type |
Public Member Functions | |
virtual ObjectName & | name ()=0 |
Returns the name of this member. | |
virtual const ObjectName & | name () const =0 |
Returns the name of this member. | |
virtual void | name (const ObjectName &name)=0 |
Modifies the underlying member's name by copy. | |
virtual void | name (ObjectName &&name)=0 |
Modifies the underlying member's name by move. | |
virtual MemberId | id () const =0 |
Returns the MemberId of the member. | |
virtual MemberId & | id ()=0 |
Returns the MemberId of the member. | |
virtual void | id (MemberId id)=0 |
Modifies the underlying MemberId. | |
virtual traits< DynamicType >::ref_type | type () const =0 |
Returns a reference to the member's type. | |
virtual traits< DynamicType >::ref_type & | type ()=0 |
Returns a reference to the member's type. | |
virtual void | type (traits< DynamicType >::ref_type type)=0 |
Modifies the underlying member's type reference. | |
virtual std::string & | default_value ()=0 |
Returns the default value. | |
virtual const std::string & | default_value () const =0 |
Returns the default value. | |
virtual void | default_value (const std::string &default_value)=0 |
Modifies the underlying default value by copy. | |
virtual void | default_value (std::string &&default_value)=0 |
Modifies the underlying default value by move. | |
virtual uint32_t & | index ()=0 |
Returns the order of definition of the member. | |
virtual uint32_t | index () const =0 |
Returns the order of definition of the member. | |
virtual const UnionCaseLabelSeq & | label () const =0 |
Returns the labels the member belongs to. | |
virtual UnionCaseLabelSeq & | label ()=0 |
Returns the labels the member belongs to. | |
virtual void | label (const UnionCaseLabelSeq &label)=0 |
Modifies the labels the member belongs to by copy. | |
virtual void | label (UnionCaseLabelSeq &&label)=0 |
Modifies the labels the member belongs to by move. | |
virtual TryConstructKind | try_construct_kind () const =0 |
Returns the TryConstructKind of the member. | |
virtual TryConstructKind & | try_construct_kind ()=0 |
Returns the TryConstructKind of the member. | |
virtual void | try_construct_kind (TryConstructKind try_construct_kind)=0 |
Modifies the TryConstructKind of the member. | |
virtual bool | is_key () const =0 |
Returns the if the member is key. | |
virtual bool & | is_key ()=0 |
Returns the if the member is key. | |
virtual void | is_key (bool is_key)=0 |
Modifies if the member is key. | |
virtual bool | is_optional () const =0 |
Returns the if the member is optional. | |
virtual bool & | is_optional ()=0 |
Returns the if the member is optional. | |
virtual void | is_optional (bool is_optional)=0 |
Modifies if the member is optional. | |
virtual bool | is_must_understand () const =0 |
Returns the if the member is must_understand. | |
virtual bool & | is_must_understand ()=0 |
Returns the if the member is must_understand. | |
virtual void | is_must_understand (bool is_must_understand)=0 |
Modifies if the member is must_understand. | |
virtual bool | is_shared () const =0 |
Returns the if the member is shared. | |
virtual bool & | is_shared ()=0 |
Returns the if the member is shared. | |
virtual void | is_shared (bool is_shared)=0 |
Modifies if the member is shared. | |
virtual bool | is_default_label () const =0 |
Returns the if the member is default_label. | |
virtual bool & | is_default_label ()=0 |
Returns the if the member is default_label. | |
virtual void | is_default_label (bool is_default_label)=0 |
Modifies if the member is default_label. | |
virtual ReturnCode_t | copy_from (traits< MemberDescriptor >::ref_type descriptor)=0 |
Overwrites the contents of this descriptor with those of another descriptor (see [standard] 7.5.2.7.1). | |
virtual bool | equals (traits< MemberDescriptor >::ref_type descriptor)=0 |
Compares according with the [standard] section 7.5.2.7.4. | |
virtual bool | is_consistent ()=0 |
Indicates whether the states of all of this descriptor's properties are consistent according with the [standard] section 7.5.2.7.7. | |
Protected Member Functions | |
MemberDescriptor ()=default | |
MemberDescriptor (const MemberDescriptor &type)=default | |
MemberDescriptor (MemberDescriptor &&type)=default | |
virtual | ~MemberDescriptor ()=default |
using _ref_type = typename traits<MemberDescriptor>::ref_type |
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
protectedvirtualdefault |
|
pure virtual |
Overwrites the contents of this descriptor with those of another descriptor (see [standard] 7.5.2.7.1).
[in] | descriptor | reference. |
RETCODE_OK | when the copy was successful. |
RETCODE_BAD_PARAMETER | when descriptor reference is nil. |
|
pure virtual |
Returns the default value.
|
pure virtual |
Returns the default value.
|
pure virtual |
Modifies the underlying default value by copy.
[in] | default_value | Default value. |
|
pure virtual |
Modifies the underlying default value by move.
[in] | default_value | Default value. |
|
pure virtual |
Compares according with the [standard] section 7.5.2.7.4.
[in] | descriptor | reference to compare to. |
true
on equality
|
pure virtual |
|
pure virtual |
Returns the order of definition of the member.
|
pure virtual |
Returns the order of definition of the member.
|
pure virtual |
Indicates whether the states of all of this descriptor's properties are consistent according with the [standard] section 7.5.2.7.7.
true
if consistent.
|
pure virtual |
Returns the if the member is default_label.
|
pure virtual |
Returns the if the member is default_label.
|
pure virtual |
Modifies if the member is default_label.
[in] | is_default_label | Boolean |
|
pure virtual |
Returns the if the member is key.
|
pure virtual |
Returns the if the member is key.
|
pure virtual |
Modifies if the member is key.
[in] | is_key | Boolean |
|
pure virtual |
Returns the if the member is must_understand.
|
pure virtual |
Returns the if the member is must_understand.
|
pure virtual |
Modifies if the member is must_understand.
[in] | is_must_understand | Boolean |
|
pure virtual |
Returns the if the member is optional.
|
pure virtual |
Returns the if the member is optional.
|
pure virtual |
Modifies if the member is optional.
[in] | is_optional | Boolean |
|
pure virtual |
Returns the if the member is shared.
|
pure virtual |
Returns the if the member is shared.
|
pure virtual |
Modifies if the member is shared.
[in] | is_shared | Boolean |
|
pure virtual |
Returns the labels the member belongs to.
|
pure virtual |
Returns the labels the member belongs to.
|
pure virtual |
Modifies the labels the member belongs to by copy.
[in] | label | UnionCaseLabelSeq |
|
pure virtual |
Modifies the labels the member belongs to by move.
[in] | label | UnionCaseLabelSeq |
|
pure virtual |
Returns the name of this member.
|
pure virtual |
Returns the name of this member.
|
pure virtual |
Modifies the underlying member's name by copy.
[in] | name | Member's name. |
|
pure virtual |
Modifies the underlying member's name by move.
[in] | name | Member's name. |
|
pure virtual |
Returns the TryConstructKind of the member.
|
pure virtual |
Returns the TryConstructKind of the member.
|
pure virtual |
Modifies the TryConstructKind of the member.
[in] | try_construct_kind | TryConstructKind. |
|
pure virtual |
Returns a reference to the member's type.
|
pure virtual |
Returns a reference to the member's type.
|
pure virtual |
Modifies the underlying member's type reference.
[in] | type | DynamicType reference. |