gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Better return type for cycleLength() functions (#179) in the min mean cycle algorithms. The original Value type is used instead of the LargeValue type, which is introduced for internal computations.
0 3 0
default
3 files changed with 6 insertions and 6 deletions:
↑ Collapse diff ↑
Ignore white space 12 line context
... ...
@@ -402,14 +402,14 @@
402 402
    /// \brief Return the total length of the found cycle.
403 403
    ///
404 404
    /// This function returns the total length of the found cycle.
405 405
    ///
406 406
    /// \pre \ref run() or \ref findMinMean() must be called before
407 407
    /// using this function.
408
    LargeValue cycleLength() const {
409
      return _best_length;
408
    Value cycleLength() const {
409
      return static_cast<Value>(_best_length);
410 410
    }
411 411

	
412 412
    /// \brief Return the number of arcs on the found cycle.
413 413
    ///
414 414
    /// This function returns the number of arcs on the found cycle.
415 415
    ///
Ignore white space 6 line context
... ...
@@ -381,14 +381,14 @@
381 381
    /// \brief Return the total length of the found cycle.
382 382
    ///
383 383
    /// This function returns the total length of the found cycle.
384 384
    ///
385 385
    /// \pre \ref run() or \ref findMinMean() must be called before
386 386
    /// using this function.
387
    LargeValue cycleLength() const {
388
      return _best_length;
387
    Value cycleLength() const {
388
      return static_cast<Value>(_best_length);
389 389
    }
390 390

	
391 391
    /// \brief Return the number of arcs on the found cycle.
392 392
    ///
393 393
    /// This function returns the number of arcs on the found cycle.
394 394
    ///
Ignore white space 6 line context
... ...
@@ -389,14 +389,14 @@
389 389
    /// \brief Return the total length of the found cycle.
390 390
    ///
391 391
    /// This function returns the total length of the found cycle.
392 392
    ///
393 393
    /// \pre \ref run() or \ref findMinMean() must be called before
394 394
    /// using this function.
395
    LargeValue cycleLength() const {
396
      return _cycle_length;
395
    Value cycleLength() const {
396
      return static_cast<Value>(_cycle_length);
397 397
    }
398 398

	
399 399
    /// \brief Return the number of arcs on the found cycle.
400 400
    ///
401 401
    /// This function returns the number of arcs on the found cycle.
402 402
    ///
0 comments (0 inline)