Actin®  Version 5.2.0 Software for Robotics Simulation and Control
EcTreeNodeIndex Struct Reference

#include <ecTreeNode.h>

## Public Member Functions

EcTreeNodeIndex ()
default constructor

EcTreeNodeIndex (EcSizeT index, EcReal cost)
constructor

EcSizeT index () const
return the index of the tree node

bool operator() (const EcTreeNodeIndex &lhs, const EcTreeNodeIndex &rhs) const
compare function for min-heap (need to reverse it since the heap we're using support max-heap)

## Detailed Description

EcTreeNodeIndex is used as a lighter-weight representation of EcTreeNode where only the index and cost are important. The node itself can then be retrieved by the index via the tree. This class is used primarily in the min heap for obtaining the node closest to the goal (i.e. node with min cost).

Definition at line 125 of file ecTreeNode.h.

The documentation for this struct was generated from the following file:
Created by Energid Technologies www.energid.com