cheshirekow  v0.1.0
mpblocks::btps::ExampleTraits::NodeOps Struct Reference

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...
 
NodeRefLeftChild (NodeRef N)
 return the left child of N More...
 
NodeRefParent (NodeRef N)
 you can leave this one off you if you dont need removal More...
 
NodeRefRightChild (NodeRef N)
 return the right child of N More...
 
double Weight (NodeRef N)
 return the weight of this node in particular More...
 

Detailed Description

a callable type which implements the primitives required to access fields of a node

Definition at line 55 of file example_traits.h.

Member Function Documentation

uint32_t& mpblocks::btps::ExampleTraits::NodeOps::Count ( NodeRef  N)
inline

return the subtree node count

Definition at line 74 of file example_traits.h.

double& mpblocks::btps::ExampleTraits::NodeOps::CumulativeWeight ( NodeRef  N)
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.

NodeRef& mpblocks::btps::ExampleTraits::NodeOps::LeftChild ( NodeRef  N)
inline

return the left child of N

Definition at line 60 of file example_traits.h.

NodeRef& mpblocks::btps::ExampleTraits::NodeOps::Parent ( NodeRef  N)
inline

you can leave this one off you if you dont need removal

Definition at line 57 of file example_traits.h.

NodeRef& mpblocks::btps::ExampleTraits::NodeOps::RightChild ( NodeRef  N)
inline

return the right child of N

Definition at line 63 of file example_traits.h.

double mpblocks::btps::ExampleTraits::NodeOps::Weight ( NodeRef  N)
inline

return the weight of this node in particular

Definition at line 66 of file example_traits.h.


The documentation for this struct was generated from the following file: