tetengo 1.8.1
A multipurpose library set
Loading...
Searching...
No Matches
tetengo::lattice::path Class Reference

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.
 

Detailed Description

A path.

Constructor & Destructor Documentation

◆ path()

tetengo::lattice::path::path ( std::vector< node nodes,
int  cost 
)

Creates a path.

Parameters
nodesNodes.
costA cost.

Member Function Documentation

◆ cost()

int tetengo::lattice::path::cost ( ) const

Returns the cost.

Returns
The cost.

◆ empty()

bool tetengo::lattice::path::empty ( ) const

Returns true when this path is empty.

Return values
trueWhen this path is empty.
falseOtherwise.

◆ nodes()

const std::vector< node > & tetengo::lattice::path::nodes ( ) const

Returns the nodes.

Returns
The nodes.

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