xale-db
1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
Node.h
Go to the documentation of this file.
1
#ifndef DATA_STRUCTURE_NODE_H
2
#define DATA_STRUCTURE_NODE_H
3
4
#include "
Core/ExceptionHandler.h
"
5
6
#include <vector>
7
#include <exception>
8
#include <string>
9
10
namespace
Xale::DataStructure
11
{
15
template
<
typename
TKey,
typename
TValue>
16
struct
Node
{
17
explicit
Node
(
bool
leaf) :
parent
(nullptr),
next
(nullptr),
isLeaf
(leaf) {}
18
19
std::vector<TKey>
keys
;
20
std::vector<TValue>
values
;
// leaf
21
std::vector<Node*>
children
;
// inner
22
Node
*
parent
;
23
Node
*
next
;
24
bool
isLeaf
;
25
};
26
}
27
28
#endif
// DATA_STRUCTURE_NODE_H
ExceptionHandler.h
Xale::DataStructure
Definition
BPlusTree.h:9
Xale::DataStructure::Node::next
Node * next
Definition
Node.h:23
Xale::DataStructure::Node::parent
Node * parent
Definition
Node.h:22
Xale::DataStructure::Node::children
std::vector< Node * > children
Definition
Node.h:21
Xale::DataStructure::Node::isLeaf
bool isLeaf
Definition
Node.h:24
Xale::DataStructure::Node::values
std::vector< TValue > values
Definition
Node.h:20
Xale::DataStructure::Node::keys
std::vector< TKey > keys
Definition
Node.h:19
Xale::DataStructure::Node::Node
Node(bool leaf)
Definition
Node.h:17
include
DataStructure
Node.h
Generated by
1.16.1