bminustree.h
来自「b-树的增加,删除,已对八百万个数据进行过测试,而且是对多个M值」· C头文件 代码 · 共 28 行
H
28 行
#ifndef BMINUSTREE_H
#define BMINUSTREE_H
#include "bMinusTreeNode.h"
template<typename X>
class CBMinusTree
{
private:
CBMinusTreeNode<X> *head;
int height;
public:
CBMinusTree(){head=0;}
void Insert(X);
CBMinusTreeNode<X>* Find(X,bool &flag);
void Traverse(CBMinusTreeNode<X> *);
CBMinusTreeNode<X>* GetHead(){return head;}
int InsertKey(CBMinusTreeNode<X>*,X);
X Split(CBMinusTreeNode<X>*,CBMinusTreeNode<X>*);
void Del(X);
CBMinusTreeNode<X>* Merge(CBMinusTreeNode<X>*,const int);
void DeleteKeyInLeaf(CBMinusTreeNode<X>*,const int);
int IsBMinusTree(CBMinusTreeNode<X>*,int);
void SetHeight(int h){height=h;}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?