TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType > Class Template ReferenceRepresentation of an OMG IDL definedunion case for unions with Enum discriminators.
More...
Inheritance diagram for TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >:
Collaboration diagram for TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >:
Detailed Descriptiontemplate<typename StringType, typename TypeCodeType>
Representation of an OMG IDL defined |
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::Case_Enum_T | ( | CORBA::TypeCode_ptr | discriminator_tc, | |
CORBA::ULong | member_label, | |||
char const * | member_name, | |||
TypeCodeType | member_type | |||
) | [inline] |
Constructor.
ACE_INLINE TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::Case_Enum_T | ( | CORBA::TypeCode_ptr | discriminator_tc, | |
CORBA::ULong | member_label | |||
) | [inline] |
Constructor.
Constructor only used in the dynamically constructed union
TypeCode
case.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::TypeCode::Case< StringType, TypeCodeType > * TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::clone | ( | void | ) | const [inline, virtual] |
CORBA::Any * TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::label | ( | void | ) | const [inline, virtual] |
Return the IDL union
case label value embedded within a CORBA::Any
.
Implements TAO::TypeCode::Case< StringType, TypeCodeType >.
bool TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::marshal_label | ( | TAO_OutputCDR & | cdr | ) | const [inline, virtual] |
Marshal the IDL union
case
label value into the given output CDR stream.
Implements TAO::TypeCode::Case< StringType, TypeCodeType >.
virtual bool TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::equal_label | ( | CORBA::ULong | index, | |
CORBA::TypeCode_ptr | tc | |||
) | const [virtual] |
Verify equality of member labels.
Performing member label equality comparisons in the Case
subclass allows us to avoid performing interpretive extraction of the value from the Any
returned from the "right hand side" operand TypeCode
since the Case
subclass already knows what type and value should be extracted from the Any
.
index | Member index of given TypeCode tc being tested. | |
tc | The TypeCode whose member "@a index" label is being tested. |
Implements TAO::TypeCode::Case< StringType, TypeCodeType >.
::CORBA::ULong const TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::label_ [private] |
IDL union
case/member label value.
CORBA::TypeCode_var TAO::TypeCode::Case_Enum_T< StringType, TypeCodeType >::discriminator_tc_ [private] |
IDL union
discriminator typecode.