Go to the documentation of this file.00001
00002
00003
00004
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006
00007 template <typename StringType,
00008 typename TypeCodeType,
00009 class CaseArrayType,
00010 class RefCountPolicy>
00011 ACE_INLINE
00012 TAO::TypeCode::Union<StringType,
00013 TypeCodeType,
00014 CaseArrayType,
00015 RefCountPolicy>::Union (
00016 char const * id,
00017 char const * name,
00018 TypeCodeType const & discriminant_type,
00019 CaseArrayType const & cases,
00020 CORBA::ULong ncases,
00021 CORBA::Long default_index)
00022 : ::CORBA::TypeCode (CORBA::tk_union)
00023 , RefCountPolicy ()
00024 , base_attributes_ (id, name)
00025 , discriminant_type_ (discriminant_type)
00026 , default_index_ (default_index)
00027 , ncases_ (ncases)
00028 , cases_ (cases)
00029 {
00030 }
00031
00032 template <typename StringType,
00033 typename TypeCodeType,
00034 class CaseArrayType,
00035 class RefCountPolicy>
00036 ACE_INLINE
00037 TAO::TypeCode::Union<StringType,
00038 TypeCodeType,
00039 CaseArrayType,
00040 RefCountPolicy>::Union (
00041 CORBA::TCKind,
00042 char const * id)
00043 : ::CORBA::TypeCode (CORBA::tk_union)
00044 , RefCountPolicy ()
00045 , base_attributes_ (id)
00046 , discriminant_type_ (0)
00047 , default_index_ (-1)
00048 , ncases_ (0)
00049 , cases_ ()
00050 {
00051 }
00052
00053 TAO_END_VERSIONED_NAMESPACE_DECL