Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VW::reductions::cats::tree_node Class Reference

#include <cats_tree.h>

Public Member Functions

 tree_node (uint32_t node_id, uint32_t left_node_id, uint32_t right_node_id, uint32_t parent_id, uint32_t depth, bool left_only, bool right_only, bool is_leaf)
 
bool operator== (const tree_node &rhs) const
 
bool operator!= (const tree_node &rhs) const
 
bool is_root () const
 

Public Attributes

uint32_t id
 
uint32_t left_id
 
uint32_t right_id
 
uint32_t parent_id
 
uint32_t depth
 
bool left_only
 
bool right_only
 
bool is_leaf
 
uint32_t learn_count
 

Constructor & Destructor Documentation

◆ tree_node()

VW::reductions::cats::tree_node::tree_node ( uint32_t  node_id,
uint32_t  left_node_id,
uint32_t  right_node_id,
uint32_t  parent_id,
uint32_t  depth,
bool  left_only,
bool  right_only,
bool  is_leaf 
)

Member Function Documentation

◆ is_root()

bool VW::reductions::cats::tree_node::is_root ( ) const
inline

◆ operator!=()

bool VW::reductions::cats::tree_node::operator!= ( const tree_node rhs) const

◆ operator==()

bool VW::reductions::cats::tree_node::operator== ( const tree_node rhs) const

Member Data Documentation

◆ depth

uint32_t VW::reductions::cats::tree_node::depth

◆ id

uint32_t VW::reductions::cats::tree_node::id

◆ is_leaf

bool VW::reductions::cats::tree_node::is_leaf

◆ learn_count

uint32_t VW::reductions::cats::tree_node::learn_count

◆ left_id

uint32_t VW::reductions::cats::tree_node::left_id

◆ left_only

bool VW::reductions::cats::tree_node::left_only

◆ parent_id

uint32_t VW::reductions::cats::tree_node::parent_id

◆ right_id

uint32_t VW::reductions::cats::tree_node::right_id

◆ right_only

bool VW::reductions::cats::tree_node::right_only

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