/src/Algorithms_NTree/NTreeLeaf.h
C Header | 36 lines | 33 code | 3 blank | 0 comment | 0 complexity | 8a0da0de0d50658cb9faca3f98166426 MD5 | raw file
Possible License(s): AGPL-3.0, LGPL-2.1, LGPL-3.0, GPL-2.0
1#ifndef _NTREE_LEAF_H_ 2#define _NTREE_LEAF_H_ 3 4#include "NTree.h" 5 6template <typename BASE = NTree, class CHILDREN = BASE> 7class NTreeLeaf: public BASE 8{ 9public: 10 virtual inline CHILDREN * AttachChildAt(unsigned int index, CHILDREN * child) 11 { 12 return 0; 13 } 14 virtual inline int AttachChild(CHILDREN * child) 15 { 16 return -1; 17 } 18 virtual inline CHILDREN * DetachChildAt(unsigned int index) 19 { 20 return 0; 21 } 22 virtual inline CHILDREN * DetachChild(CHILDREN * child) 23 { 24 return 0; 25 } 26 virtual inline CHILDREN * GetChildAt(unsigned int index) const 27 { 28 return 0; 29 } 30 virtual inline unsigned int GetOrder() const 31 { 32 return 0; 33 } 34}; 35 36#endif