cheshirekow
v0.1.0
|
a callable type which implements the primitives required to access fields of a node More...
#include <mpblocks/btps/example_traits.h>
Public Member Functions | |
uint32_t & | Count (NodeRef N) |
return the subtree node count More... | |
double & | CumulativeWeight (NodeRef N) |
return the cumulative weight of the subtree, the return type is deduced by the tree template and can be anything modeling a real number More... | |
NodeRef & | LeftChild (NodeRef N) |
return the left child of N More... | |
NodeRef & | Parent (NodeRef N) |
you can leave this one off you if you dont need removal More... | |
NodeRef & | RightChild (NodeRef N) |
return the right child of N More... | |
double | Weight (NodeRef N) |
return the weight of this node in particular More... | |
a callable type which implements the primitives required to access fields of a node
Definition at line 55 of file example_traits.h.
|
inline |
return the subtree node count
Definition at line 74 of file example_traits.h.
|
inline |
return the cumulative weight of the subtree, the return type is deduced by the tree template and can be anything modeling a real number
Definition at line 71 of file example_traits.h.
return the left child of N
Definition at line 60 of file example_traits.h.
you can leave this one off you if you dont need removal
Definition at line 57 of file example_traits.h.
return the right child of N
Definition at line 63 of file example_traits.h.
|
inline |
return the weight of this node in particular
Definition at line 66 of file example_traits.h.