tetengo 1.8.1
A multipurpose library set
|
A path. More...
#include <path.hpp>
Public Member Functions | |
path () | |
Creates an empty path. | |
path (std::vector< node > nodes, int cost) | |
Creates a path. | |
bool | empty () const |
Returns true when this path is empty. | |
const std::vector< node > & | nodes () const |
Returns the nodes. | |
int | cost () const |
Returns the cost. | |
A path.
tetengo::lattice::path::path | ( | std::vector< node > | nodes, |
int | cost | ||
) |
Creates a path.
nodes | Nodes. |
cost | A cost. |
int tetengo::lattice::path::cost | ( | ) | const |
Returns the cost.
bool tetengo::lattice::path::empty | ( | ) | const |
Returns true when this path is empty.
true | When this path is empty. |
false | Otherwise. |
const std::vector< node > & tetengo::lattice::path::nodes | ( | ) | const |
Returns the nodes.