DBoW2::TemplatedVocabulary< TDescriptor, F >::Node Struct Reference

Tree node. More...

#include <TemplatedVocabulary.h>

List of all members.

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< NodeIdchildren
 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.

Detailed Description

template<class TDescriptor, class F>
struct DBoW2::TemplatedVocabulary< TDescriptor, F >::Node

Tree node.


Constructor & Destructor Documentation

template<class TDescriptor, class F>
DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::Node (  )  [inline]

Empty constructor

template<class TDescriptor, class F>
DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::Node ( NodeId  _id  )  [inline]

Constructor

Parameters:
_id node id

Member Function Documentation

template<class TDescriptor, class F>
bool DBoW2::TemplatedVocabulary< TDescriptor, F >::Node::isLeaf (  )  const [inline]

Returns whether the node is a leaf node

Returns:
true iff the node is a leaf

The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends
Generated on Thu Feb 7 19:47:43 2013 by  doxygen 1.6.3