text
stringlengths
0
234
-- PILOT_0000_0423 Include diagnostic references.
--
Application_Types.Count_Of_Relationships := Application_Types.Count_Of_Relationships - 1;
elsif A_Instance.all'Tag = Single_Side then
--
Do_Unlink (
Left_Instance => A_Instance,
Right_Instance => B_Instance);
--
-- PILOT_0000_0423 Include diagnostic references.
--
Application_Types.Count_Of_Relationships := Application_Types.Count_Of_Relationships - 1;
end if;
end Unlink;
-----------------------------------------------------------------------
procedure Navigate (
From : in Root_Object.Object_List.List_Header_Access_Type;
Class : in Ada.Tags.Tag;
To : in Root_Object.Object_List.List_Header_Access_Type) is
Source_Instance: Root_Object.Object_Access;
Temp_Node: Root_Object.Object_List.Node_Access_Type;
Temp_Instance: Root_Object.Object_Access;
--Temp_Single: Root_Object.Object_Access;
--Temp_Associative: Root_Object.Object_Access;
--Temp_Multiple: Root_Object.Object_Access;
begin
Temp_Node := Root_Object.Object_List.First_Entry_Of (From);
while Temp_Node /= null loop
Source_Instance := Temp_Node.Item;
if Source_Instance.all'Tag = Multiple_Side then
Navigate (
From => Source_Instance,
Class => Class,
To => Temp_Instance);
if Temp_Instance /= null then
Root_Object.Object_List.Insert (
New_Item => Temp_Instance,
On_To => To );
end if;
--
elsif Source_Instance.all'Tag = Single_Side then
Navigate (
From => Source_Instance,
Class => Class,
To => To);
--
elsif Source_Instance.all'Tag = Associative_Side then
Navigate (
From => Source_Instance,
Class => Class,
To => Temp_Instance);
if Temp_Instance /= null then
Root_Object.Object_List.Insert (
New_Item => Temp_Instance,
On_To => To );
end if;
--
end if;
Temp_Node := Root_Object.Object_List.Next_Entry_Of (From);
end loop;
end Navigate;
-----------------------------------------------------------------------
procedure Navigate (
From : in Root_Object.Object_Access;
Class : in Ada.Tags.Tag;
To : out Root_Object.Object_Access) is
--
-- navigate from a single to a single
-- valid for:
-- A -> M
-- A -> S
-- M -> S