Changeset 0ac9690913 in tspsg for src/tspsolver.cpp


Ignore:
Timestamp:
Dec 7, 2009, 5:06:44 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
a218bf2cb2
Parents:
3b1caa32d0
Message:

+ Toolbar state and position is now saved and restored with Main Window state and position.

  • Made some small improvements to the code.
  • Fixed some errors in the documentation.
  • Made source code more "documentation friendly".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspsolver.cpp

    r3b1caa32d0 r0ac9690913  
    209209}
    210210
    211 bool CTSPSolver::findCandidate(tMatrix matrix, int &nRow, int &nCol)
     211bool CTSPSolver::findCandidate(const tMatrix &matrix, int &nRow, int &nCol) const
    212212{
    213213        nRow = -1;
     
    232232}
    233233
    234 double CTSPSolver::findMinInCol(int nCol, tMatrix matrix, int exr)
     234double CTSPSolver::findMinInCol(int nCol, const tMatrix &matrix, int exr) const
    235235{
    236236double min = INFINITY;
     
    241241}
    242242
    243 double CTSPSolver::findMinInRow(int nRow, tMatrix matrix, int exc)
     243double CTSPSolver::findMinInRow(int nRow, const tMatrix &matrix, int exc) const
    244244{
    245245double min = INFINITY;
     
    250250}
    251251
    252 bool CTSPSolver::hasSubCycles(int nRow, int nCol)
     252bool CTSPSolver::hasSubCycles(int nRow, int nCol) const
    253253{
    254254        if ((nRow < 0) || (nCol < 0) || route.isEmpty() || !(route.size() < nCities - 1) || !route.contains(nCol))
Note: See TracChangeset for help on using the changeset viewer.