// -*- C++ -*-
//
// $Id: Recursive_TypeCode.inl 89705 2010-03-29 21:15:42Z mitza $

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE
TAO::TypeCodeFactory::Recursive_TypeCode::Recursive_TypeCode (char const * id)
  : ::CORBA::TypeCode (CORBA::TAO_TC_KIND_COUNT)
  , ::TAO::True_RefCount_Policy ()
  , id_ (id)
  , the_typecode_ ()
{
}

ACE_INLINE void
TAO::TypeCodeFactory::Recursive_TypeCode::the_typecode (CORBA::TypeCode_ptr tc)
{
  this->the_typecode_ = tc;

  // @@ Lazy, I know.  :(
  CORBA::TCKind & mutable_kind = const_cast<CORBA::TCKind &> (this->kind_);

  mutable_kind = tc->kind ();
}

TAO_END_VERSIONED_NAMESPACE_DECL
