text stringlengths 0 234 |
|---|
Multiple_Instance => B_Instance, |
Single_Instance => A_Instance, |
Associative_Instance => Using); |
-- |
-- PILOT_0000_0423 Include diagnostic references. |
-- |
Application_Types.Count_Of_Relationships := Application_Types.Count_Of_Relationships + 1; |
end if; |
end if; -- Using.all'tag /= Associative_Side |
end Link; |
----------------------------------------------------------------------- |
procedure Unassociate ( |
A_Instance : in Root_Object.Object_Access; |
B_Instance : in Root_Object.Object_Access; |
From : in Root_Object.Object_Access) is |
begin |
null; |
end Unassociate; |
----------------------------------------------------------------------- |
procedure Unlink ( |
A_Instance : in Root_Object.Object_Access; |
B_Instance : in Root_Object.Object_Access) is |
begin |
if A_Instance.all'Tag = Multiple_Side then |
Do_Unlink ( |
Left_Instance => B_Instance, |
Right_Instance => A_Instance); |
-- |
-- 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); |
-- |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.