From d98f46ce647846b0aa30b2e16a30fd4e152a1bf5 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 10 Jul 2025 22:55:07 +0200 Subject: Add new code Signed-off-by: Carlos Maiolino --- Algorithms/bplus-tree/src/bplus_rebalance.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Algorithms/bplus-tree/src/bplus_rebalance.h (limited to 'Algorithms/bplus-tree/src/bplus_rebalance.h') diff --git a/Algorithms/bplus-tree/src/bplus_rebalance.h b/Algorithms/bplus-tree/src/bplus_rebalance.h new file mode 100644 index 0000000..3872f4d --- /dev/null +++ b/Algorithms/bplus-tree/src/bplus_rebalance.h @@ -0,0 +1,24 @@ +/** + * Distributed under the Boost Software License, Version 1.0. + * See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt + */ + +#ifndef __BPLUS_REBALANCE_H__ +#define __BPLUS_REBALANCE_H__ + +#include "bplus_tree_private.h" + +#ifdef __cplusplus +extern "C" +{ +#endif // ifdef __cplusplus + +void bplus_rebalance_propagate(BplusTree const* tree, BplusPath* path); +void bplus_rebalance_overfilled(BplusTree* tree, BplusPath const* path); +void bplus_rebalance_underfilled(BplusTree* tree, BplusPath const* path); + +#ifdef __cplusplus +} +#endif // ifdef __cplusplus + +#endif // ifndef __BPLUS_REBALANCE_H__ -- cgit v1.2.3