SubcloneSeeker
1.0.0
Subclone deconvolution software framework
|
A tree traverser that saves an entire tree structure from a database. More...
#include <Subclone.h>
Public Member Functions | |
SubcloneSaveTreeTraverser (sqlite3 *database) | |
virtual void | processNode (TreeNode *node) |
virtual void | preprocessNode (TreeNode *node) |
![]() | |
TreeTraverseDelegate () | |
virtual | ~TreeTraverseDelegate () |
void | terminate () |
bool | isTerminated () |
virtual void | postprocessNode (TreeNode *) |
Protected Attributes | |
sqlite3 * | _database |
![]() | |
bool | _isTerminated |
A tree traverser that saves an entire tree structure from a database.
The traverser takes one argument at construction, which is the database pointer to which the entire subclone structure will be saved. When performing the actual load, a pre-order traverse should be performed on the root node of the tree being archived. The traverser will archive the root node, then traverse its children node.
|
inline |
Constructor of the SubcloneSaveTreeTraverser class
database | To which database will the tree be saved |
|
virtual |
Hook to call before children nodes are recursively processed
node | the node whose children nodes are to be recursively processed |
Reimplemented from SubcloneSeeker::TreeTraverseDelegate.
|
virtual |
Process the given node during a tree traverse
node | the Node which needs to be processed |
Implements SubcloneSeeker::TreeTraverseDelegate.
|
protected |
To which database will the tree be saved