Natools

Diff
Login

Differences From Artifact [a4216fce60]:

To Artifact [c8ec0ca761]:


17
18
19
20
21
22
23

24
25
26
27
28
29
30
31
32
33
34
------------------------------------------------------------------------------
-- Natools.References.Tools exposes subprograms to peek into private parts  --
-- of Natools.Reference, for debug or testing purposes.                     --
------------------------------------------------------------------------------

generic
package Natools.References.Tools is


   function Is_Consistent (Left, Right : Reference) return Boolean;
      --  Check that counter and data equality are consistent

   function Is_Valid (Ref : Reference) return Boolean;
      --  Check consistency for internal state

   function Count (Ref : Reference) return Natural;
      --  Return the number of references to held object

end Natools.References.Tools;







>











17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
------------------------------------------------------------------------------
-- Natools.References.Tools exposes subprograms to peek into private parts  --
-- of Natools.Reference, for debug or testing purposes.                     --
------------------------------------------------------------------------------

generic
package Natools.References.Tools is
   pragma Preelaborate (Tools);

   function Is_Consistent (Left, Right : Reference) return Boolean;
      --  Check that counter and data equality are consistent

   function Is_Valid (Ref : Reference) return Boolean;
      --  Check consistency for internal state

   function Count (Ref : Reference) return Natural;
      --  Return the number of references to held object

end Natools.References.Tools;