text stringlengths 0 234 |
|---|
end if; |
end if; |
end if; |
end Navigate; |
--------------------------------------------------------------------- |
procedure Navigate ( |
From : in Root_Object.Object_Access; |
Class : in Ada.Tags.Tag; |
To : in Root_Object.Object_List.List_Header_Access_Type) is |
-- |
-- navigate from a single to a set |
-- valid for: |
-- S -> M |
-- S -> A |
-- |
Temp_Minor_Pointer: Relationship_Pair_Access_Type; |
Temp_Major_Pointer: Relationship_Entry_Access_Type; |
begin |
if From.all'Tag = Single_Side then |
Temp_Major_Pointer := The_Relationship_List; |
Major_Loop: |
while Temp_Major_Pointer /= null loop |
if Temp_Major_Pointer.Single = From then |
Temp_Minor_Pointer := Temp_Major_Pointer.Completion_List; |
Minor_Loop: |
while Temp_Minor_Pointer /= null loop |
if Class = Multiple_Side then |
Root_Object.Object_List.Insert ( |
New_Item => Temp_Minor_Pointer.Multiple, |
On_To => To); |
elsif Class = Associative_Side then |
Root_Object.Object_List.Insert ( |
New_Item => Temp_Minor_Pointer.Associative, |
On_To => To); |
end if; |
Temp_Minor_Pointer := Temp_Minor_Pointer.Next; |
end loop Minor_Loop; |
exit Major_Loop; |
end if; |
Temp_Major_Pointer := Temp_Major_Pointer.Next; |
end loop Major_Loop; |
-- |
end if; |
end Navigate; |
------------------------------------------------------------------------ |
-- associative correlated navigation |
procedure Navigate ( |
From : in Root_Object.Object_Access; |
Also : in Root_Object.Object_Access; |
Class : in Ada.Tags.Tag; |
To : out Root_Object.Object_Access) is |
-- navigate from two singles to a single |
-- valid for: |
-- M and S -> A |
-- S and M -> A |
Temp_Single, |
Single_Side_Source , |
Multiple_Side_Source, |
Temp_Associative_Multiple, |
Temp_Associative_Single : Root_Object.Object_Access := null; |
Assoc_Set : Root_Object.Object_List.List_Header_Access_Type := Root_Object.Object_List.Initialise; |
Found, |
Tags_Correct : Boolean := FALSE; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.