SubcloneSeeker
1.0.0
Subclone deconvolution software framework
|
A tree traverser that loads an entire tree structure from a database. More...
#include <Subclone.h>
Public Member Functions | |
SubcloneLoadTreeTraverser (sqlite3 *database) | |
virtual void | processNode (TreeNode *node) |
![]() | |
TreeTraverseDelegate () | |
virtual | ~TreeTraverseDelegate () |
void | terminate () |
bool | isTerminated () |
virtual void | preprocessNode (TreeNode *) |
virtual void | postprocessNode (TreeNode *) |
Static Public Member Functions | |
static std::vector< sqlite3_int64 > | rootNodes (sqlite3 *database) |
Query the database for a set of nodes that appears to be root. More... | |
static std::vector< sqlite3_int64 > | nodesOfParentID (sqlite3 *database, sqlite3_int64 parentId) |
Query the database for a set of nodes that appears to be the children of a given node ID. More... | |
Protected Attributes | |
sqlite3 * | _database |
![]() | |
bool | _isTerminated |
A tree traverser that loads an entire tree structure from a database.
The traverser takes one argument at construction, which is the database pointer from which the entire subclone structure will be loaded. When performing the actual load, a pre-order traverse should be performed on a node that is initialized through unarchiving (which would have its id field populated). The traverser will find all the children nodes in the database, unarchive them, add them as children to the node currently being processed, and continue the traverse.
|
inline |
Constructor of the SubcloneLoadTreeTraverser class
database | From which database will the tree be load |
|
static |
Query the database for a set of nodes that appears to be the children of a given node ID.
database | The database to which the query is sent |
parentId | The ID representing a node in the database |
|
virtual |
Process the given node during a tree traverse
node | the Node which needs to be processed |
Implements SubcloneSeeker::TreeTraverseDelegate.
|
static |
Query the database for a set of nodes that appears to be root.
database | The database to which the query is sent |
|
protected |
From which database will be tree be loaded