Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::internal::PathWithPriority Class Reference

#include <k_shortest_paths.h>

Public Member Functions

 PathWithPriority (PathDistance priority, std::vector< NodeIndex > path)
 
bool operator< (const PathWithPriority &other) const
 
const std::vector< NodeIndex > & path () const
 
PathDistance priority () const
 

Detailed Description

Stores a path with a priority (typically, the distance), with a comparison operator that operates on the priority.

Definition at line 196 of file k_shortest_paths.h.

Constructor & Destructor Documentation

◆ PathWithPriority()

operations_research::internal::PathWithPriority::PathWithPriority ( PathDistance priority,
std::vector< NodeIndex > path )
inline

Definition at line 198 of file k_shortest_paths.h.

Member Function Documentation

◆ operator<()

bool operations_research::internal::PathWithPriority::operator< ( const PathWithPriority & other) const
inline

Definition at line 200 of file k_shortest_paths.h.

◆ path()

const std::vector< NodeIndex > & operations_research::internal::PathWithPriority::path ( ) const
inlinenodiscard

Definition at line 204 of file k_shortest_paths.h.

◆ priority()

PathDistance operations_research::internal::PathWithPriority::priority ( ) const
inlinenodiscard

Definition at line 205 of file k_shortest_paths.h.


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