text stringlengths 0 234 |
|---|
-- the same logic applies |
-- |
if Delete_List then |
if Temp_Major_Pointer.Previous = null then |
-- |
-- first instance in list |
-- |
The_Relationship_List := Temp_Major_Pointer.Next; |
end if; |
if Temp_Major_Pointer.Next /= null then |
-- |
-- there are more instances following in the list |
-- |
Temp_Major_Pointer.Next.Previous := Temp_Major_Pointer.Previous; |
end if; |
if Temp_Major_Pointer.Previous /= null then |
-- |
-- there are more instances previous in the list |
-- |
Temp_Major_Pointer.Previous.Next := Temp_Major_Pointer.Next; |
end if; |
Remove_Entry (Temp_Major_Pointer); |
end if; |
end Do_Unlink; |
------------------------------------------------------------------------- |
procedure Register_Multiple_End_Class (Multiple_Instance : in Ada.Tags.Tag) is |
begin |
Multiple_Side := Multiple_Instance; |
end Register_Multiple_End_Class; |
--------------------------------------------------------------------- |
procedure Register_Multiple_End_Role (Multiple_Role : in String) is |
begin |
Multiple_Side_Role (1 .. Multiple_Role'Length) := Multiple_Role; |
Multiple_Side_Role_Length := Multiple_Role'Length; |
end Register_Multiple_End_Role; |
--------------------------------------------------------------------- |
procedure Register_Single_End_Class (Single_Instance : in Ada.Tags.Tag) is |
begin |
Single_Side := Single_Instance; |
end Register_Single_End_Class; |
--------------------------------------------------------------------- |
procedure Register_Single_End_Role (Single_Role : in String) is |
begin |
Single_Side_Role (1..Single_Role'Length) := Single_Role; |
Single_Side_Role_Length := Single_Role'Length; |
end Register_Single_End_Role; |
--------------------------------------------------------------------- |
procedure Register_Associative_End_Class (Associative_Instance : in Ada.Tags.Tag) is |
begin |
Associative_Side := Associative_Instance; |
end Register_Associative_End_Class; |
--------------------------------------------------------------------- |
procedure Register_Associative_End_Role (Associative_Role : in String) is |
begin |
Associative_Side_Role (1 .. Associative_Role'Length) := Associative_Role; |
Associative_Side_Role_Length := Associative_Role'Length; |
end Register_Associative_End_Role; |
--------------------------------------------------------------------- |
procedure Link ( |
A_Instance : in Root_Object.Object_Access; |
B_Instance : in Root_Object.Object_Access; |
Using : in Root_Object.Object_Access) is |
begin |
if Using.all'Tag = Associative_Side then |
if A_Instance.all'Tag = Multiple_Side then |
Do_Link ( |
Multiple_Instance => A_Instance, |
Single_Instance => B_Instance, |
Associative_Instance => Using); |
-- |
-- 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_Link ( |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.