File: vector.ads

package info (click to toggle)
gnat-glade 2006-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,056 kB
  • ctags: 20
  • sloc: ada: 28,261; sh: 2,888; makefile: 627; ansic: 2
file content (17 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package Vector is
   pragma Shared_Passive;

   N_Partitions : constant := 4;
   Block_Size   : constant := 5;
   Length       : constant := N_Partitions * Block_Size;

   type Content_Type is array (0 .. Length - 1) of Natural;

   protected Content is
      procedure Increment (N : Natural; I : Natural);
      function Value (N : Natural) return Natural;
   private
      X : Content_Type := (others => 0);
   end Content;

end Vector;