ScapeGoatTree
Loading...
Searching...
No Matches
ITree Class Reference

#include <iTree.hpp>

Static Public Member Functions

static void TreeUI ()
 

Static Private Member Functions

static void handleBatches (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleOperations (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleDisplay (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleBalance (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleCoreOperators (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleOperatorEmpty (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleOperatorMerge (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleOperatorCompare (const ScapeGoatTree< ElemenType > &A, const ScapeGoatTree< ElemenType > &B)
 
static ScapeGoatTree< ElemenType > & selectTree (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleClear (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleUndoRedo (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleSuminRange (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void hanleMinMax (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B, opcodes op)
 
static void handleValuesinRange (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleKthSmallestElement (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleSucessor (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 
static void handleSplit (ScapeGoatTree< ElemenType > &A, ScapeGoatTree< ElemenType > &B)
 

Member Function Documentation

◆ handleBalance()

static void ITree::handleBalance ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Handles checking and reporting the balance status of the trees.

◆ handleBatches()

static void ITree::handleBatches ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

Handles batch insertion and deletion operations.

◆ handleClear()

static void ITree::handleClear ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Handles clearing the contents of the trees.

◆ handleCoreOperators()

static void ITree::handleCoreOperators ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

Handles core operators like insertion and deletion.

◆ handleDisplay()

static void ITree::handleDisplay ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

Handles display operations for the trees.

◆ handleKthSmallestElement()

static void ITree::handleKthSmallestElement ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

◆ handleOperations()

static void ITree::handleOperations ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

Handles standard tree operations like search.

◆ handleOperatorCompare()

static void ITree::handleOperatorCompare ( const ScapeGoatTree< ElemenType > &  A,
const ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Handles comparing two trees for equality.

◆ handleOperatorEmpty()

static void ITree::handleOperatorEmpty ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Handles checking if the trees are empty.

◆ handleOperatorMerge()

static void ITree::handleOperatorMerge ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Handles merging two trees together.

◆ handleSplit()

static void ITree::handleSplit ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

◆ handleSucessor()

static void ITree::handleSucessor ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

◆ handleSuminRange()

static void ITree::handleSuminRange ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

◆ handleUndoRedo()

static void ITree::handleUndoRedo ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

◆ handleValuesinRange()

static void ITree::handleValuesinRange ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

◆ hanleMinMax()

static void ITree::hanleMinMax ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B,
opcodes  op 
)
staticprivate

◆ selectTree()

static ScapeGoatTree< ElemenType > & ITree::selectTree ( ScapeGoatTree< ElemenType > &  A,
ScapeGoatTree< ElemenType > &  B 
)
staticprivate

Prompts the user to select one of the two available trees.

◆ TreeUI()

static void ITree::TreeUI ( )
static

Launches the terminal-based user interface for interacting with the trees.


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