SubcloneSeeker  1.0.0
Subclone deconvolution software framework
 All Classes Files Functions Variables Macros Pages
SubcloneSeeker::SubcloneSaveTreeTraverser Class Reference

A tree traverser that saves an entire tree structure from a database. More...

#include <Subclone.h>

Inheritance diagram for SubcloneSeeker::SubcloneSaveTreeTraverser:
SubcloneSeeker::TreeTraverseDelegate

Public Member Functions

 SubcloneSaveTreeTraverser (sqlite3 *database)
 
virtual void processNode (TreeNode *node)
 
virtual void preprocessNode (TreeNode *node)
 
- Public Member Functions inherited from SubcloneSeeker::TreeTraverseDelegate
 TreeTraverseDelegate ()
 
virtual ~TreeTraverseDelegate ()
 
void terminate ()
 
bool isTerminated ()
 
virtual void postprocessNode (TreeNode *)
 

Protected Attributes

sqlite3 * _database
 
- Protected Attributes inherited from SubcloneSeeker::TreeTraverseDelegate
bool _isTerminated
 

Detailed Description

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.

Constructor & Destructor Documentation

SubcloneSeeker::SubcloneSaveTreeTraverser::SubcloneSaveTreeTraverser ( sqlite3 *  database)
inline

Constructor of the SubcloneSaveTreeTraverser class

Parameters
databaseTo which database will the tree be saved

Member Function Documentation

void SubcloneSaveTreeTraverser::preprocessNode ( TreeNode )
virtual

Hook to call before children nodes are recursively processed

Parameters
nodethe node whose children nodes are to be recursively processed

Reimplemented from SubcloneSeeker::TreeTraverseDelegate.

void SubcloneSaveTreeTraverser::processNode ( TreeNode )
virtual

Process the given node during a tree traverse

Parameters
nodethe Node which needs to be processed

Implements SubcloneSeeker::TreeTraverseDelegate.

Member Data Documentation

sqlite3* SubcloneSeeker::SubcloneSaveTreeTraverser::_database
protected

To which database will the tree be saved


The documentation for this class was generated from the following files: