A path.
More...
#include <path.hpp>
|
|
| 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.
|
| |
◆ path()
| tetengo::lattice::path::path |
( |
std::vector< node > | nodes, |
|
|
int | cost ) |
Creates a path.
- Parameters
-
◆ cost()
| int tetengo::lattice::path::cost |
( |
| ) |
const |
|
nodiscard |
Returns the cost.
- Returns
- The cost.
◆ empty()
| bool tetengo::lattice::path::empty |
( |
| ) |
const |
|
nodiscard |
Returns true when this path is empty.
- Return values
-
| true | When this path is empty. |
| false | Otherwise. |
◆ nodes()
| const std::vector< node > & tetengo::lattice::path::nodes |
( |
| ) |
const |
|
nodiscard |
Returns the nodes.
- Returns
- The nodes.
The documentation for this class was generated from the following file:
- library/lattice/cpp/include/tetengo/lattice/path.hpp