text stringlengths 0 234 |
|---|
Associative_Side := Associative_Instance; |
M1_Single_M2_Multiple.Register_Associative_End_Class (Associative_Instance); |
M2_Single_M1_Multiple.Register_Associative_End_Class (Associative_Instance); |
end Register_Associative_End_Class; |
--------------------------------------------------------------------- |
function Report_Associative_End_Class return Ada.Tags.Tag is |
begin |
return Associative_Side; |
end Report_Associative_End_Class; |
--------------------------------------------------------------------- |
procedure Link ( |
A_Instance : in Root_Object.Object_Access; |
B_Instance : in Root_Object.Object_Access; |
Using : in Root_Object.Object_Access) is |
begin |
M1_Single_M2_Multiple.Link ( |
A_Instance => A_Instance, |
B_Instance => B_Instance, |
Using => Using); |
M2_Single_M1_Multiple.Link ( |
A_Instance => A_Instance, |
B_Instance => B_Instance, |
Using => Using); |
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 |
M1_Single_M2_Multiple.Unassociate ( |
A_Instance => A_Instance, |
B_Instance => B_Instance, |
From => From); |
M2_Single_M1_Multiple.Unassociate ( |
A_Instance => B_Instance, |
B_Instance => A_Instance, |
From => From); |
end Unassociate; |
----------------------------------------------------------------------- |
procedure Unlink ( |
A_Instance : in Root_Object.Object_Access; |
B_Instance : in Root_Object.Object_Access) is |
begin |
M1_Single_M2_Multiple.Unlink ( |
A_Instance => A_Instance, |
B_Instance => B_Instance); |
M2_Single_M1_Multiple.Unlink ( |
A_Instance => B_Instance, |
B_Instance => A_Instance); |
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 |
The_A_Instance: Root_Object.Object_Access; |
begin |
The_A_Instance := Root_Object.Object_List.First_Entry_Of (From).Item; |
if The_A_Instance /= null then |
if The_A_Instance.all'tag = M1_Side then |
M1_Single_M2_Multiple.Navigate ( |
From => From, |
Class => Class, |
To => To); |
elsif The_A_Instance.all'tag = M2_Side then |
M2_Single_M1_Multiple.Navigate ( |
From => From, |
Class => Class, |
To => To); |
elsif The_A_Instance.all'tag = Associative_Side then |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.