-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor|libdeng2: PathTree nodes index their own children
Branch nodes now have the ability to keep track on who their immediate child nodes are. This is a crucial property of a tree data structure, and required by Archive (and later, FS2). Now when PathTree is asked to traverse the nodes matching a parent, it can simply look at only the child nodes of the parent rather than iterating through all the nodes of the tree. Of course, the user is free to iterate the children manually using PathTree::Node::children() (and maybe a PathTreeIterator). This behavior can be disabled with the PathTree::NoLocalBranchIndex flag, if the user of the tree needs no access to a specific parent's children.
- Loading branch information
Showing
4 changed files
with
122 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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