diff enigma/enigma_types.h @ 1:1459e74fda3f

Finished creating rotor class and factories.
author Brian Neal <bgneal@gmail.com>
date Fri, 22 Jun 2012 20:15:11 -0500
parents 74ebb2150658
children
line wrap: on
line diff
--- a/enigma/enigma_types.h	Thu Jun 21 21:05:26 2012 -0500
+++ b/enigma/enigma_types.h	Fri Jun 22 20:15:11 2012 -0500
@@ -8,6 +8,7 @@
 
 #include <exception>
 #include <string>
+#include <array>
 
 namespace enigma
 {
@@ -28,6 +29,10 @@
    private:
       std::string what_arg;
    };
+
+   // Arrays of 26 items are very commonly used:
+   typedef std::array<int, 26> alpha_int_array;
+   typedef std::array<bool, 26> alpha_bool_array;
 }
 
 #endif