Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

CHashTreeCtrl< hashClass > Class Template Reference

#include <HashTreeCtrl.h>

Inheritance diagram for CHashTreeCtrl< hashClass >:

CHashTreeNode< hashClass, 10,(10+2), 02 > CHashContainer< hashClass >

Public Member Functions

 CHashTreeCtrl (void)
 Default constructor that does nothing - not sure what this could be good for.

 CHashTreeCtrl (uint64 nLength)
 Constructor that sets 'singleton' statuses on an otherwise blank tree - prepare a new file tree.

 CHashTreeCtrl (CFile &cFile, uint64 nPath=0, uint8 nLevel=0)
 Constructor that builds a tree from a file - load a new shared file.

 ~CHashTreeCtrl (void)
 Destroys the tree controller and all its related objects.

CHashTreeCtrlGetSubTree (uint32 TargetNode, char RootLevel, char EndLevel)
 Extract a tree section under a specific node.

uint32 WriteTable (CFile *outFile)
 Writes the hash table to file.

uint32 GetHashLevelStrip (uint32 HashStart, uint32 HashEnd, char HashLevel)
 Get a strip of hashes from a specific level between two boundaries.


Static Public Attributes

const CString CLASSNAME = CString("CHashTreeCtrl/") + StaticAlgorithmName()
 Defines this class' name.


Detailed Description

template<class hashClass>
class CHashTreeCtrl< hashClass >

Tree controller class to manage the trees and network/API.
Note:
This is only an early draft I made when I started working on M-CS/ICH, many details have changed since so this draft interface will need a serious overhaul when I get to start working on it for real.


Constructor & Destructor Documentation

template<class hashClass>
CHashTreeCtrl< hashClass >.CHashTreeCtrl void   ) 
 

Default constructor that does nothing - not sure what this could be good for.

template<class hashClass>
CHashTreeCtrl< hashClass >.CHashTreeCtrl uint64  nLength  ) 
 

Constructor that sets 'singleton' statuses on an otherwise blank tree - prepare a new file tree.

template<class hashClass>
CHashTreeCtrl< hashClass >.CHashTreeCtrl CFile &  cFile,
uint64  nPath = 0,
uint8  nLevel = 0
 

Constructor that builds a tree from a file - load a new shared file.

template<class hashClass>
CHashTreeCtrl< hashClass >::~CHashTreeCtrl void   ) 
 

Destroys the tree controller and all its related objects.


Member Function Documentation

template<class hashClass>
uint32 CHashTreeCtrl< hashClass >.GetHashLevelStrip uint32  HashStart,
uint32  HashEnd,
char  HashLevel
 

Get a strip of hashes from a specific level between two boundaries.

template<class hashClass>
CHashTreeCtrl* CHashTreeCtrl< hashClass >.GetSubTree uint32  TargetNode,
char  RootLevel,
char  EndLevel
 

Extract a tree section under a specific node.

Generate a top tree from file. Create a new empty top tree for a new file.

template<class hashClass>
uint32 CHashTreeCtrl< hashClass >.WriteTable CFile *  outFile  ) 
 

Writes the hash table to file.


Field Documentation

template<class hashClass>
const CString CHashTreeCtrl< hashClass >::CLASSNAME = CString("CHashTreeCtrl/") + StaticAlgorithmName() [static]
 

Defines this class' name.

Reimplemented from CHashTreeNode< hashClass, 10,(10+2), 02 >.


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 12:02:54 2003 for Moonlight's eMule Tweaks Documentation by doxygen 1.3.4