Changeset 0ac9690913 in tspsg for src/tspsolver.h


Ignore:
Timestamp:
Dec 7, 2009, 5:06:44 PM (14 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.h

    r3b1caa32d0 r0ac9690913  
    7676        static QString getVersionId();
    7777        bool isOptimal() const;
    78         sStep *solve(int, tMatrix, QWidget *parent = 0);
     78        sStep *solve(int numCities, tMatrix task, QWidget *parent = 0);
    7979
    8080private:
     
    8585//      QHash<int,int> forbidden;
    8686
    87         double align(tMatrix &);
     87        double align(tMatrix &matrix);
    8888        void cleanup();
    89         bool findCandidate(tMatrix, int &, int &);
    90         double findMinInCol(int, tMatrix, int exr = -1);
    91         double findMinInRow(int, tMatrix, int exc = -1);
    92         bool hasSubCycles(int, int);
    93         void subCol(tMatrix &, int, double);
    94         void subRow(tMatrix &, int, double);
     89        bool findCandidate(const tMatrix &matrix, int &nRow, int &nCol) const;
     90        double findMinInCol(int nCol, const tMatrix &matrix, int exr = -1) const;
     91        double findMinInRow(int nRow, const tMatrix &matrix, int exc = -1) const;
     92        bool hasSubCycles(int nRow, int nCol) const;
     93        void subCol(tMatrix &matrix, int nCol, double val);
     94        void subRow(tMatrix &matrix, int nRow, double val);
    9595};
    9696
Note: See TracChangeset for help on using the changeset viewer.