Hosted by
|
with Real_Strings; use Real_Strings;
package body Intersections is
function To_String
(Item : in Intersection)
return String is
begin
if Item.White_To_Black
then return To_String(Item.X) & "WB";
else return To_String(Item.X) & "BW";
end if;
end To_String;
function "<"
(A, B : in Intersection)
return Boolean is
begin
return A.X < B.X;
end "<";
end Intersections;
|