summaryrefslogtreecommitdiff
path: root/src/bundles-containers.ads
blob: f892b5c4bf391d2f8c7a4b50d3e001f7bb3aea59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41


with Ada.Containers.Ordered_Maps;
with Ada.Containers.Vectors;


--  This source is licensed under Creative Commons CC0 v1.0.
--
--  To read the full text, see license.txt in the main directory of this repository
--  or go to https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
--
--  For a human readable summary, go to https://creativecommons.org/publicdomain/zero/1.0/


generic
package Bundles.Containers is


    package Bundle_Vectors is new Ada.Containers.Vectors
           (Index_Type   => Positive,
            Element_Type => Bundle);


    package Bundle_Maps is new Ada.Containers.Ordered_Maps
           (Key_Type     => Candidates.CandidateID,
            Element_Type => Bundle_Vectors.Vector,
            "<"          => Candidates."<",
            "="          => Bundle_Vectors."=");


    subtype Bundle_Map is Bundle_Maps.Map;


    procedure Read_Bundles
           (Filename : in     String;
            Result   :    out Bundle_Map);


end Bundles.Containers;