Commit e51537ff by Robert Dewar Committed by Arnaud Charlet

a-cfdlli.ads, [...]: Remove unneeded with of Ada.Containers Remove commented out pragma Inline's...

2011-08-02  Robert Dewar  <dewar@adacore.com>

	* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
	a-cforse.ads: Remove unneeded with of Ada.Containers
	Remove commented out pragma Inline's
	Move specifications of new subprograms to the actual specs

From-SVN: r177114
parent 83fa09c5
2011-08-02 Robert Dewar <dewar@adacore.com>
* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
a-cforse.ads: Remove unneeded with of Ada.Containers
Remove commented out pragma Inline's
Move specifications of new subprograms to the actual specs
2011-08-02 Yannick Moy <moy@adacore.com> 2011-08-02 Yannick Moy <moy@adacore.com>
* a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads,
......
...@@ -49,16 +49,7 @@ ...@@ -49,16 +49,7 @@
-- function Left (Container : List; Position : Cursor) return List; -- function Left (Container : List; Position : Cursor) return List;
-- function Right (Container : List; Position : Cursor) return List; -- function Right (Container : List; Position : Cursor) return List;
-- Strict_Equal returns True if the containers are physically equal, -- See detailed specifications for these subprograms
-- meaning that they are structurally equal (function "=" returns True)
-- and that they have the same set of cursors.
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions are useful to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private with Ada.Streams; private with Ada.Streams;
with Ada.Containers; with Ada.Containers;
...@@ -235,10 +226,18 @@ package Ada.Containers.Formal_Doubly_Linked_Lists is ...@@ -235,10 +226,18 @@ package Ada.Containers.Formal_Doubly_Linked_Lists is
end Generic_Sorting; end Generic_Sorting;
function Strict_Equal (Left, Right : List) return Boolean; function Strict_Equal (Left, Right : List) return Boolean;
-- Strict_Equal returns True if the containers are physically equal, i.e.
-- they are structurally equal (function "=" returns True) and that they
-- have the same set of cursors.
function Left (Container : List; Position : Cursor) return List; function Left (Container : List; Position : Cursor) return List;
function Right (Container : List; Position : Cursor) return List; function Right (Container : List; Position : Cursor) return List;
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions can be used to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private private
......
...@@ -49,21 +49,10 @@ ...@@ -49,21 +49,10 @@
-- function Left (Container : Map; Position : Cursor) return Map; -- function Left (Container : Map; Position : Cursor) return Map;
-- function Right (Container : Map; Position : Cursor) return Map; -- function Right (Container : Map; Position : Cursor) return Map;
-- Strict_Equal returns True if the containers are physically equal, -- See detailed specifications for these subprograms
-- meaning that they are structurally equal (function "=" returns True)
-- and that they have the same set of cursors. Overlap returns True if
-- the containers have common keys.
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions are useful to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private with Ada.Containers.Hash_Tables; private with Ada.Containers.Hash_Tables;
private with Ada.Streams; private with Ada.Streams;
with Ada.Containers; use Ada.Containers;
generic generic
type Key_Type is private; type Key_Type is private;
...@@ -206,24 +195,30 @@ package Ada.Containers.Formal_Hashed_Maps is ...@@ -206,24 +195,30 @@ package Ada.Containers.Formal_Hashed_Maps is
function Default_Modulus (Capacity : Count_Type) return Hash_Type; function Default_Modulus (Capacity : Count_Type) return Hash_Type;
function Strict_Equal (Left, Right : Map) return Boolean; function Strict_Equal (Left, Right : Map) return Boolean;
-- Strict_Equal returns True if the containers are physically equal, i.e.
-- they are structurally equal (function "=" returns True) and that they
-- have the same set of cursors.
function Left (Container : Map; Position : Cursor) return Map; function Left (Container : Map; Position : Cursor) return Map;
function Right (Container : Map; Position : Cursor) return Map; function Right (Container : Map; Position : Cursor) return Map;
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions can be used to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
function Overlap (Left, Right : Map) return Boolean; function Overlap (Left, Right : Map) return Boolean;
-- Overlap returns True if the containers have common keys
private private
-- pragma Inline ("=");
pragma Inline (Length); pragma Inline (Length);
pragma Inline (Is_Empty); pragma Inline (Is_Empty);
pragma Inline (Clear); pragma Inline (Clear);
pragma Inline (Key); pragma Inline (Key);
pragma Inline (Element); pragma Inline (Element);
-- pragma Inline (Move); ???
pragma Inline (Contains); pragma Inline (Contains);
pragma Inline (Capacity); pragma Inline (Capacity);
-- pragma Inline (Reserve_Capacity); ???
pragma Inline (Has_Element); pragma Inline (Has_Element);
pragma Inline (Equivalent_Keys); pragma Inline (Equivalent_Keys);
pragma Inline (Next); pragma Inline (Next);
......
...@@ -49,23 +49,11 @@ ...@@ -49,23 +49,11 @@
-- function Left (Container : Set; Position : Cursor) return Set; -- function Left (Container : Set; Position : Cursor) return Set;
-- function Right (Container : Set; Position : Cursor) return Set; -- function Right (Container : Set; Position : Cursor) return Set;
-- Strict_Equal returns True if the containers are physically equal, -- See detailed specifications for these subprograms
-- meaning that they are structurally equal (function "=" returns True)
-- and that they have the same set of cursors.
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions are useful to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private with Ada.Containers.Hash_Tables; private with Ada.Containers.Hash_Tables;
private with Ada.Streams; private with Ada.Streams;
with Ada.Containers;
use Ada.Containers;
generic generic
type Element_Type is private; type Element_Type is private;
...@@ -242,10 +230,18 @@ package Ada.Containers.Formal_Hashed_Sets is ...@@ -242,10 +230,18 @@ package Ada.Containers.Formal_Hashed_Sets is
end Generic_Keys; end Generic_Keys;
function Strict_Equal (Left, Right : Set) return Boolean; function Strict_Equal (Left, Right : Set) return Boolean;
-- Strict_Equal returns True if the containers are physically equal, i.e.
-- they are structurally equal (function "=" returns True) and that they
-- have the same set of cursors.
function Left (Container : Set; Position : Cursor) return Set; function Left (Container : Set; Position : Cursor) return Set;
function Right (Container : Set; Position : Cursor) return Set; function Right (Container : Set; Position : Cursor) return Set;
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions can be used to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private private
......
...@@ -51,21 +51,10 @@ ...@@ -51,21 +51,10 @@
-- function Left (Container : Map; Position : Cursor) return Map; -- function Left (Container : Map; Position : Cursor) return Map;
-- function Right (Container : Map; Position : Cursor) return Map; -- function Right (Container : Map; Position : Cursor) return Map;
-- Strict_Equal returns True if the containers are physically equal, -- See detailed specifications for these subprograms
-- meaning that they are structurally equal (function "=" returns True)
-- and that they have the same set of cursors. Overlap returns True if
-- the containers have common keys.
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions are useful to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private with Ada.Containers.Red_Black_Trees; private with Ada.Containers.Red_Black_Trees;
private with Ada.Streams; private with Ada.Streams;
with Ada.Containers;
generic generic
type Key_Type is private; type Key_Type is private;
...@@ -205,13 +194,21 @@ package Ada.Containers.Formal_Ordered_Maps is ...@@ -205,13 +194,21 @@ package Ada.Containers.Formal_Ordered_Maps is
procedure (Container : Map; Position : Cursor)); procedure (Container : Map; Position : Cursor));
function Strict_Equal (Left, Right : Map) return Boolean; function Strict_Equal (Left, Right : Map) return Boolean;
-- Strict_Equal returns True if the containers are physically equal, i.e.
-- they are structurally equal (function "=" returns True) and that they
-- have the same set of cursors.
function Left (Container : Map; Position : Cursor) return Map; function Left (Container : Map; Position : Cursor) return Map;
function Right (Container : Map; Position : Cursor) return Map; function Right (Container : Map; Position : Cursor) return Map;
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions can be used to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
function Overlap (Left, Right : Map) return Boolean; function Overlap (Left, Right : Map) return Boolean;
-- Overlap returns True if the containers have common keys
private private
pragma Inline (Next); pragma Inline (Next);
......
...@@ -50,22 +50,11 @@ ...@@ -50,22 +50,11 @@
-- function Left (Container : Set; Position : Cursor) return Set; -- function Left (Container : Set; Position : Cursor) return Set;
-- function Right (Container : Set; Position : Cursor) return Set; -- function Right (Container : Set; Position : Cursor) return Set;
-- Strict_Equal returns True if the containers are physically equal, -- See detailed specifications for these subprograms
-- meaning that they are structurally equal (function "=" returns True)
-- and that they have the same set of cursors.
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions are useful to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private with Ada.Containers.Red_Black_Trees; private with Ada.Containers.Red_Black_Trees;
private with Ada.Streams; private with Ada.Streams;
with Ada.Containers;
generic generic
type Element_Type is private; type Element_Type is private;
...@@ -256,10 +245,18 @@ package Ada.Containers.Formal_Ordered_Sets is ...@@ -256,10 +245,18 @@ package Ada.Containers.Formal_Ordered_Sets is
end Generic_Keys; end Generic_Keys;
function Strict_Equal (Left, Right : Set) return Boolean; function Strict_Equal (Left, Right : Set) return Boolean;
-- Strict_Equal returns True if the containers are physically equal, i.e.
-- they are structurally equal (function "=" returns True) and that they
-- have the same set of cursors.
function Left (Container : Set; Position : Cursor) return Set; function Left (Container : Set; Position : Cursor) return Set;
function Right (Container : Set; Position : Cursor) return Set; function Right (Container : Set; Position : Cursor) return Set;
-- Left returns a container containing all elements preceding Position
-- (excluded) in Container. Right returns a container containing all
-- elements following Position (included) in Container. These two new
-- functions can be used to express invariant properties in loops which
-- iterate over containers. Left returns the part of the container already
-- scanned and Right the part not scanned yet.
private private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment