Changeset 71 in tspsg-svn for trunk/src/tspsolver.cpp


Ignore:
Timestamp:
Dec 7, 2009, 5:06:44 PM (15 years ago)
Author:
laleppa
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
  • trunk/src/tspsolver.cpp

    r67 r71  
    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.