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

this type is not required by the interface, but if you just need a simple node type then this one will do it for you More...

#include <mpblocks/btps/example_traits.h>

Inheritance diagram for mpblocks::btps::ExampleTraits::Node:
mpblocks::btps::BasicNode< ExampleTraits >

Public Member Functions

 Node (double weight=0)
 
- Public Member Functions inherited from mpblocks::btps::BasicNode< ExampleTraits >
 BasicNode (double weight=0)
 

Public Attributes

uint32_t freq
 number of times sampled More...
 
- Public Attributes inherited from mpblocks::btps::BasicNode< ExampleTraits >
uint32_t count
 count of subtree descendants More...
 
double cumweight
 cumulative weight of children More...
 
NodeRef left
 left child More...
 
NodeRef parent
 only needed if we want removal More...
 
NodeRef right
 right child More...
 
double weight
 the weight of this node More...
 

Additional Inherited Members

- Public Types inherited from mpblocks::btps::BasicNode< ExampleTraits >
typedef ExampleTraits::NodeRef NodeRef
 

Detailed Description

this type is not required by the interface, but if you just need a simple node type then this one will do it for you

Definition at line 47 of file example_traits.h.

Constructor & Destructor Documentation

mpblocks::btps::ExampleTraits::Node::Node ( double  weight = 0)
inline

Definition at line 48 of file example_traits.h.

Member Data Documentation

uint32_t mpblocks::btps::ExampleTraits::Node::freq

number of times sampled

Definition at line 50 of file example_traits.h.


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