update numeric key interface
This commit is contained in:
parent
3148e2c020
commit
13bcbcb23f
3 changed files with 25 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue