... | ... |
@@ -511,25 +511,25 @@ |
511 | 511 |
return _path_num; |
512 | 512 |
} |
513 | 513 |
|
514 | 514 |
/// \brief Return a const reference to the specified path. |
515 | 515 |
/// |
516 | 516 |
/// This function returns a const reference to the specified path. |
517 | 517 |
/// |
518 | 518 |
/// \param i The function returns the <tt>i</tt>-th path. |
519 | 519 |
/// \c i must be between \c 0 and <tt>%pathNum()-1</tt>. |
520 | 520 |
/// |
521 | 521 |
/// \pre \ref run() or \ref findPaths() must be called before using |
522 | 522 |
/// this function. |
523 |
Path path(int i) const { |
|
523 |
const Path& path(int i) const { |
|
524 | 524 |
return paths[i]; |
525 | 525 |
} |
526 | 526 |
|
527 | 527 |
/// @} |
528 | 528 |
|
529 | 529 |
}; //class Suurballe |
530 | 530 |
|
531 | 531 |
///@} |
532 | 532 |
|
533 | 533 |
} //namespace lemon |
534 | 534 |
|
535 | 535 |
#endif //LEMON_SUURBALLE_H |
0 comments (0 inline)