Skip to content

Commit

Permalink
M agpl-containers-bulk.ads
Browse files Browse the repository at this point in the history
M    agpl-conversions.adb
M    agpl-conversions.ads
M    agpl.gpr
M    agpl-htn-tasks-containers.ads
M    agpl-cr-mutable_assignment.adb
M    agpl-cr-mutable_assignment.ads
M    agpl-cr-agent-containers.ads
  • Loading branch information
mosteo committed Sep 9, 2006
1 parent baf563a commit 8e85787
Show file tree
Hide file tree
Showing 8 changed files with 599 additions and 285 deletions.
6 changes: 6 additions & 0 deletions agpl-containers-bulk.ads
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,25 @@
-- Massive instantiation of containers

with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Indefinite_Vectors;

generic
type Element_Type (<>) is private;
with function "=" (Left, Right : Element_Type) return Boolean is <>;
type Index_Type is range <>;
type Key_Type (<>) is private;
with function "<" (Left, Right : Key_Type) return Boolean is <>;
package Agpl.Containers.Bulk is

pragma Preelaborate;

package Lists is new Ada.Containers.Indefinite_Doubly_Linked_Lists
(Element_Type);

package Maps is new Ada.Containers.Indefinite_Ordered_Maps
(Key_Type, Element_Type);

package Vectors is new Ada.Containers.Indefinite_Vectors
(Index_Type, Element_Type);

Expand Down
16 changes: 8 additions & 8 deletions agpl-conversions.adb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ with System.Img_Real; use System.Img_Real;

package body Agpl.Conversions is

------------------------------------------------------------------------
-- Trim --
------------------------------------------------------------------------
function Trim (This : in String) return String is
begin
return Ada.Strings.Fixed.Trim (This, Ada.Strings.Both);
end Trim;

------------------------------------------------------------------------
-- From_Hex --
------------------------------------------------------------------------
Expand Down Expand Up @@ -147,12 +155,4 @@ package body Agpl.Conversions is
end if;
end To_Str;

------------------------------------------------------------------------
-- Trim --
------------------------------------------------------------------------
function Trim (This : in String) return String is
begin
return Ada.Strings.Fixed.Trim (This, Ada.Strings.Both);
end Trim;

end Agpl.Conversions;
2 changes: 1 addition & 1 deletion agpl-conversions.ads
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ package Agpl.Conversions is
return String;

function Trim (This : in String) return String;
pragma Inline (Trim);
-- pragma Inline (Trim);

end Agpl.Conversions;
3 changes: 2 additions & 1 deletion agpl-cr-agent-containers.ads
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ with Agpl.Containers.Bulk;
package Agpl.Cr.Agent.Containers is
new Agpl.Containers.Bulk (Object'Class,
"=",
Positive);
Positive,
String, "<");

pragma Preelaborate (Agpl.Cr.Agent.Containers);
Loading

0 comments on commit 8e85787

Please sign in to comment.