diff options
Diffstat (limited to 'meowpp/dsa/SplayTree_Range.hpp')
-rw-r--r-- | meowpp/dsa/SplayTree_Range.hpp | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/meowpp/dsa/SplayTree_Range.hpp b/meowpp/dsa/SplayTree_Range.hpp index 1f216cf..def7ef7 100644 --- a/meowpp/dsa/SplayTree_Range.hpp +++ b/meowpp/dsa/SplayTree_Range.hpp @@ -1,3 +1,11 @@ +#include "SplayTree_Range.h" + + +#include <cstdlib> + +#include <utility> + +#include "../math/utility.h" namespace meow{ ///////////////////////////// **# Node #** ///////////////////////// @@ -192,21 +200,6 @@ namespace meow{ __left->syncUp(); return __left; } - // - template<class Key, class Value> - inline void SplayTree_Range<Key, Value>::print(Node* __now, - int __depth) const{ - if(__now == NULL) return ; - printf("%*s [%llX]:(%lu)\tParent=%llX Left=%llX Right=%llX\n", - __depth * 2, "", - (long long unsigned)__now, - __now->_size, - (long long unsigned)__now->_parent, - (long long unsigned)__now->_child[0], - (long long unsigned)__now->_child[1]); - print(__now->_child[0], __depth + 1); - print(__now->_child[1], __depth + 1); - } ///////////////////////// **# Element ##* ////////////////////////// template<class Key, class Value> inline void SplayTree_Range<Key, Value>::Element::reset(Node* __node){ @@ -509,10 +502,5 @@ namespace meow{ __tree2->_root = NULL; return true; } - template<class Key, class Value> - inline void - SplayTree_Range<Key, Value>::print() const{ - print(_root, 0); - } } |