File: vector.adb

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 (15 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package body Vector is

   protected body Content is
      procedure Increment (N : Natural; I : Natural) is
      begin
         X (N) := X (N) + I;
      end Increment;

      function Value (N : Natural) return Natural is
      begin
         return X (N);
      end Value;
   end Content;

end Vector;