summaryrefslogtreecommitdiff
path: root/src/bundles-containers.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-02-10 18:41:36 +1100
committerJed Barber <jjbarber@y7mail.com>2017-02-10 18:41:36 +1100
commit60b2207a469a5a1e7a7e5619a8eb1b01c67f314a (patch)
treec928299d78242f2b36798e8c1802914552626352 /src/bundles-containers.ads
parent964a28e91593c4bf1e1c132536828d87f8d12c84 (diff)
Preference data reads into Bundles properly, with packed memory and a few fixed bugs
Diffstat (limited to 'src/bundles-containers.ads')
-rw-r--r--src/bundles-containers.ads30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/bundles-containers.ads b/src/bundles-containers.ads
new file mode 100644
index 0000000..d405e7e
--- /dev/null
+++ b/src/bundles-containers.ads
@@ -0,0 +1,30 @@
+
+
+with Ada.Containers.Ordered_Maps;
+with Ada.Containers.Vectors;
+
+
+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."=");
+
+
+ procedure Read_Bundles
+ (Filename : in String;
+ Result : out Bundle_Maps.Map);
+
+
+end Bundles.Containers;
+
+