Created
February 29, 2012 18:44
-
-
Save flyx/1943436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generic | |
-- defines maximum depth of tree | |
type Node_Level is <>; | |
package Tree is | |
-- it's a binary tree. for now. | |
type Tree_Direction is (Left, Right); | |
type Direction_Array is array (Node_Level range <>) of Tree_Direction; | |
type Path_To_Node (Depth : Node_Level) is record | |
Directions : Direction_Array (Node_Level'First .. Depth'Pred); | |
end record; | |
-- .. somewhere here, the actual Tree structure is defined | |
end Tree; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment