faif
|
the template to create the node in tree-based search methods More...
#include <TreeNodeImpl.hpp>
Public Types | |
typedef std::vector< TreeNode< T > * > | Children |
Public Member Functions | |
TreeNode (const typename Node< T >::PNode &point, TreeNode< T > *parent=0L) | |
TreeNode (const typename Node< T >::PNode &point, TreeNode< T > *parent, double weight) | |
~TreeNode () | |
boost::shared_ptr< T > | getPoint () const |
const TreeNode< T > * | getParent () const |
Children | getChildren () |
Children | getChildrenWithWeight () |
double | getWeight () const |
short | getLevel () const |
void | eraseChildren () |
Node< T >::Path | generatePathToRoot () const |
the template to create the node in tree-based search methods
|
inline |
Constructor
Referenced by faif::search::TreeNode< T >::getChildren(), and faif::search::TreeNode< T >::getChildrenWithWeight().
|
inline |
Constructor
|
inline |
Destructor
References faif::search::TreeNode< T >::eraseChildren().
|
inline |
|
inline |
accessor
References faif::search::TreeNode< T >::getChildren(), and faif::search::TreeNode< T >::getChildrenWithWeight().
Referenced by faif::search::checkNodeInPath().
TreeNode< T >::Children faif::search::TreeNode< T >::getChildren | ( | ) |
accessor, the children. Creates the children in the first call
References faif::search::TreeNode< T >::TreeNode().
Referenced by faif::search::TreeNode< T >::getParent(), faif::search::searchBreadthFirst(), and faif::search::searchDepthFirst().
TreeNode< T >::Children faif::search::TreeNode< T >::getChildrenWithWeight | ( | ) |
accessor, the children. Creates the children in the first call. Calculates the weight as a sum of weight of parent and weight of child.
References faif::search::TreeNode< T >::getWeight(), and faif::search::TreeNode< T >::TreeNode().
Referenced by faif::search::TreeNode< T >::getParent(), faif::search::searchAStar(), and faif::search::searchUnifiedCost().
|
inline |
accessor
Referenced by faif::search::TreeNode< T >::getChildrenWithWeight().
|
inline |
void faif::search::TreeNode< T >::eraseChildren | ( | ) |
erase the child tree nodes
Referenced by faif::search::TreeNode< T >::getLevel(), and faif::search::TreeNode< T >::~TreeNode().
Node< T >::Path faif::search::TreeNode< T >::generatePathToRoot | ( | ) | const |
generate the path from given state to the root
Referenced by faif::search::TreeNode< T >::getLevel(), faif::search::searchAStar(), faif::search::searchBreadthFirst(), faif::search::searchDepthFirst(), and faif::search::searchUnifiedCost().