00001 // -*- C++ -*- 00002 // 00003 // $Id: Sequence_TypeCode.inl 72141 2006-04-19 09:45:01Z jwillemsen $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 template <typename TypeCodeType, class RefCountPolicy> 00008 ACE_INLINE 00009 TAO::TypeCode::Sequence<TypeCodeType, RefCountPolicy>::Sequence ( 00010 CORBA::TCKind kind, 00011 #if defined (__BORLANDC__) && (__BORLANDC__ < 0x572) 00012 // Borland C++ currently can't handle a reference to 00013 // const pointer to const CORBA::TypeCode_ptr 00014 TypeCodeType content_type, 00015 #else 00016 TypeCodeType const & content_type, 00017 #endif 00018 CORBA::ULong length) 00019 : ::CORBA::TypeCode (kind) 00020 , RefCountPolicy () 00021 , content_type_ (content_type) 00022 , length_ (length) 00023 { 00024 // ACE_ASSERT (kind == CORBA::tk_array || kind == CORBA::tk_sequence); 00025 } 00026 00027 TAO_END_VERSIONED_NAMESPACE_DECL