update numeric key interface

This commit is contained in:
IlyaShurupov 2024-04-01 14:10:40 +03:00 committed by Ilya Shurupov
parent 3148e2c020
commit 13bcbcb23f
3 changed files with 25 additions and 23 deletions

View file

@ -30,7 +30,7 @@ namespace tp {
inline const IntervalKey& keyInLeftSubtree(const IntervalKey& in) const { return in; }
template <typename tTreeNodeType>
inline void updateTreeCacheCallBack(const tTreeNodeType* node) {
inline void updateNodeCache(const tTreeNodeType* node) {
mMax = 0;
if (node->mRight && node->mRight->key.mMax > mMax) mMax = node->mRight->key.mMax;
if (node->mLeft && node->mLeft->key.mMax > mMax) mMax = node->mLeft->key.mMax;