|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
A B+ tree implementation for chunk indexing. More...
#include <advanced_structures.hpp>
Collaboration diagram for advanced_structures::ChunkBPlusTree< T >:Classes | |
| struct | Node |
Public Member Functions | |
| ChunkBPlusTree () | |
| Constructs a new ChunkBPlusTree object. | |
| void | insert (const T &key) |
| Inserts a key into the B+ tree. | |
| bool | search (const T &key) const |
| Searches for a key in the B+ tree. | |
Private Member Functions | |
| void | insert_non_full (std::shared_ptr< Node > node, const T &key) |
| bool | search_node (const std::shared_ptr< Node > &node, const T &key) const |
| void | split_child (std::shared_ptr< Node > parent, int index) |
Private Attributes | |
| std::shared_ptr< Node > | root |
Static Private Attributes | |
| static constexpr int | ORDER = 4 |
A B+ tree implementation for chunk indexing.
| T | The type of elements stored in the tree |
Definition at line 239 of file advanced_structures.hpp.
|
inline |
Constructs a new ChunkBPlusTree object.
Definition at line 257 of file advanced_structures.hpp.
|
inline |
Inserts a key into the B+ tree.
| key | The key to insert |
Definition at line 263 of file advanced_structures.hpp.
References advanced_structures::ChunkBPlusTree< T >::insert_non_full(), advanced_structures::ChunkBPlusTree< T >::ORDER, advanced_structures::ChunkBPlusTree< T >::root, and advanced_structures::ChunkBPlusTree< T >::split_child().
|
inlineprivate |
Definition at line 309 of file advanced_structures.hpp.
References advanced_structures::ChunkBPlusTree< T >::insert_non_full(), advanced_structures::ChunkBPlusTree< T >::ORDER, and advanced_structures::ChunkBPlusTree< T >::split_child().
Referenced by advanced_structures::ChunkBPlusTree< T >::insert(), and advanced_structures::ChunkBPlusTree< T >::insert_non_full().
|
inline |
Searches for a key in the B+ tree.
| key | The key to search for |
Definition at line 283 of file advanced_structures.hpp.
References advanced_structures::ChunkBPlusTree< T >::root, and advanced_structures::ChunkBPlusTree< T >::search_node().
|
inlineprivate |
Definition at line 335 of file advanced_structures.hpp.
References advanced_structures::ChunkBPlusTree< T >::search_node().
Referenced by advanced_structures::ChunkBPlusTree< T >::search(), and advanced_structures::ChunkBPlusTree< T >::search_node().
|
inlineprivate |
Definition at line 291 of file advanced_structures.hpp.
References advanced_structures::ChunkBPlusTree< T >::ORDER.
Referenced by advanced_structures::ChunkBPlusTree< T >::insert(), and advanced_structures::ChunkBPlusTree< T >::insert_non_full().
|
staticconstexprprivate |
Definition at line 240 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkBPlusTree< T >::insert(), advanced_structures::ChunkBPlusTree< T >::insert_non_full(), and advanced_structures::ChunkBPlusTree< T >::split_child().
|
private |
Definition at line 251 of file advanced_structures.hpp.
Referenced by advanced_structures::ChunkBPlusTree< T >::insert(), and advanced_structures::ChunkBPlusTree< T >::search().