pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
pragma Warnings (Off, "use of an anonymous access type allocator");

---------------------------------------------------
--  This file has been generated automatically from
--  /pbulk/work/net/ada-polyorb/work/PolyORB-25.0/idls/CORBA_IDL/orb.idl
--  by IAC (IDL to Ada Compiler) 25.0w (rev. unknown).
---------------------------------------------------
--  NOTE: If you modify this file by hand, your
--  changes will be lost when you re-run the
--  IDL to Ada compiler.
---------------------------------------------------

with CORBA;
pragma Elaborate_All (CORBA);
with CORBA.Object;
with PolyORB.Any;
with PolyORB.Types;

package CORBA.Repository_Root.Contained.Helper is

   TC_Contained : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CORBA.Repository_Root.Contained.Ref;

   function To_Any
     (Item : CORBA.Repository_Root.Contained.Ref)
     return CORBA.Any;

   function Unchecked_To_Ref
     (The_Ref : CORBA.Object.Ref'Class)
     return CORBA.Repository_Root.Contained.Ref;

   function To_Ref
     (The_Ref : CORBA.Object.Ref'Class)
     return CORBA.Repository_Root.Contained.Ref;

   TC_Description : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CORBA.Repository_Root.Contained.Description;

   function To_Any
     (Item : CORBA.Repository_Root.Contained.Description)
     return CORBA.Any;

   
   package Internals is

      procedure Initialize_Contained;

      type Ptr_Ü_Description is
        access all CORBA.Repository_Root.Contained.Description;

      type Content_Ü_Description is
        new PolyORB.Any.Aggregate_Content with record
            V : Ptr_Ü_Description;
         end record;

      function Get_Aggregate_Element
        (Acc : not null access Content_Ü_Description;
         Tc : PolyORB.Any.TypeCode.Object_Ptr;
         Index : PolyORB.Types.Unsigned_Long;
         Mech : not null access PolyORB.Any.Mechanism)
        return PolyORB.Any.Content'Class;

      function Get_Aggregate_Count
        (Acc : Content_Ü_Description)
        return PolyORB.Types.Unsigned_Long;

      procedure Set_Aggregate_Count
        (Acc : in out Content_Ü_Description;
         Count : PolyORB.Types.Unsigned_Long);

      function Unchecked_Get_V
        (Acc : not null access Content_Ü_Description)
        return PolyORB.Types.Address;

      function Clone
        (Acc : Content_Ü_Description;
         Into : PolyORB.Any.Content_Ptr := null)
        return PolyORB.Any.Content_Ptr;

      procedure Finalize_Value
        (Acc : in out Content_Ü_Description);

      function Wrap
        (X : access CORBA.Repository_Root.Contained.Description)
        return PolyORB.Any.Content'Class;

      procedure Initialize_Description;

   end Internals;

end CORBA.Repository_Root.Contained.Helper;
