Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

AStar::Node< State >::CostCmp Struct Reference

Search nodes should be sorted based on total cost (total). More...

#include <AStar.h>

Inheritance diagram for AStar::Node< State >::CostCmp:

Detailed Description

template<class State>
struct AStar::Node< State >::CostCmp

Search nodes should be sorted based on total cost (total).

Note the inverted comparison, STL heap operations put max at the heap root, but we want the min

Definition at line 29 of file AStar.h.

List of all members.

Public Member Functions

bool operator() (const Node *left, const Node *right) const

Member Function Documentation

template<class State>
bool AStar::Node< State >::CostCmp::operator() ( const Node left,
const Node right 
) const

Definition at line 30 of file AStar.h.


The documentation for this struct was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:19 2016 by Doxygen 1.6.3