GSLAM  3.0.0
Public Member Functions | Public Attributes | List of all members
Vocabulary::Node Struct Reference

Tree node. More...

Public Member Functions

 Node ()
 Empty constructor.
 
bool isLeaf () const
 Returns whether the node is a leaf node. More...
 
void addChild (NodeId _id)
 

Public Attributes

uint32_t childNum
 
WordValue weight
 

Detailed Description

Tree node.

Member Function Documentation

bool isLeaf ( ) const

Returns whether the node is a leaf node.

Returns
true iff the node is a leaf

Referenced by Vocabulary::getWordsFromNode(), and Vocabulary::transform().