// -*- C++ -*- // // $Id$ template ACE_INLINE TAO::TypeCode::Union::Union ( char const * id, char const * name, #if defined (__BORLANDC__) && (__BORLANDC__ < 0x572) // Borland C++ currently can't handle a reference to // const pointer to const CORBA::TypeCode_ptr TypeCodeType discriminant_type, #else TypeCodeType const & discriminant_type, #endif CaseArrayType const & cases, CORBA::ULong ncases, CORBA::Long default_index) : CORBA::TypeCode (CORBA::tk_union) , RefCountPolicy () , base_attributes_ (id, name) , discriminant_type_ (discriminant_type) , default_index_ (default_index) , ncases_ (ncases) , cases_ (cases) { } template ACE_INLINE CORBA::ULong TAO::TypeCode::Union::case_count (void) const { return this->ncases_; } template ACE_INLINE typename TAO::TypeCode::Union::case_type const & TAO::TypeCode::Union::the_case (CORBA::ULong index) const { return *this->cases_[index]; }