mirror of
https://github.com/YuhangQ/InvoDB.git
synced 2025-01-28 23:50:59 +00:00
27 lines
565 B
C++
27 lines
565 B
C++
//
|
|
// Created by YuhangQ on 2021/10/25.
|
|
//
|
|
|
|
#ifndef INVODB_BTREE_UUID_H
|
|
#define INVODB_BTREE_UUID_H
|
|
|
|
#include <btree/btree_node.h>
|
|
|
|
class BTreeUUID {
|
|
public:
|
|
BTreeUUID(const int& address);
|
|
void insert(const char* uuid, int address);
|
|
int find(std::string uuid);
|
|
void print();
|
|
private:
|
|
void innerPrint(BTreeNodeUUID* cur);
|
|
|
|
void split(std::string uuid, int address, int parentAddr, int curAddr);
|
|
void insertInternal(std::string uuid, int curAddr, int lLeafAddr, int rLeafAddr);
|
|
int root;
|
|
int cnt;
|
|
};
|
|
|
|
|
|
#endif //INVODB_BTREE_UUID_H
|