#include <ptree.h>
_apatnodeのコラボレーション図
変数 | |
union { | |
void * data | |
Pointer address at leaf | |
int thres_bit | |
Threshold bit at branch | |
} | value |
Node value | |
_apatnode * | left0 |
Link to left node (bit=0) | |
_apatnode * | right1 |
Link to right node (bit=1) |
union { ... } _apatnode::value |
Node value
Pointer adreess if this is leaf node (in case both left0 and right1 are NULL), or threshold bit if this is branch node (otherwise)