Tree node. More...
#include <TemplatedVocabulary.h>
Public Member Functions | |
Node () | |
Node (NodeId _id) | |
bool | isLeaf () const |
Public Attributes | |
NodeId | id |
Node id. | |
WordValue | weight |
Weight if the node is a word. | |
vector< NodeId > | children |
Children. | |
NodeId | parent |
Parent node (undefined in case of root). | |
TDescriptor | descriptor |
Node descriptor. | |
WordId | word_id |
Word id if the node is a word. |
Tree node.
DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::Node | ( | ) | [inline] |
Empty constructor
DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::Node | ( | NodeId | _id | ) | [inline] |
Constructor
_id | node id |
bool DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::isLeaf | ( | ) | const [inline] |
Returns whether the node is a leaf node