Go to the documentation of this file.
15 #ifndef __BIN_TREE_H__
16 #define __BIN_TREE_H__
35 virtual void clear() = 0;
36 virtual bool empty()
const = 0;
44 virtual void inOrder()
const = 0;
51 #endif // __BIN_TREE_H__
virtual void preOrder() const =0
virtual value_type parent(value_type x, value_type flag) const =0
virtual value_type root(value_type flag) const =0
virtual void delRight(value_type x)=0
virtual void postOrder() const =0
virtual void levelOrder() const =0
virtual void delLeft(value_type x)=0
virtual bool empty() const =0
virtual void inOrder() const =0
virtual value_type rchild(value_type x, value_type flag) const =0
value_type & reference
数据的引用
virtual value_type lchild(value_type x, value_type flag) const =0
const typedef value_type & const_reference
数据的常量引用