Changeset e0fcac5f2c in tspsg for src/tspsolver.h


Ignore:
Timestamp:
Oct 24, 2009, 3:37:48 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:
8af59c4aa3
Parents:
85ad815b0b
Message:
  • Finished documentation.
  • Sorted all functions in .cpp files according to order of their declaration in .h files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspsolver.h

    r85ad815b0b re0fcac5f2c  
    11/*!
    2  * \class CTSPSolver
     2 * \file tspsolver.h
    33 * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
    4  * \brief This class solves Travelling Salesman Problem task.
    54 *
    65 *  $Id$
    76 *  $URL$
     7 *
     8 * \brief Defines #tMatrix typedef, sStep struct and CTSPSolver class.
    89 *
    910 *  <b>TSPSG: TSP Solver and Generator</b>
     
    2324 *  You should have received a copy of the GNU General Public License
    2425 *  along with TSPSG.  If not, see <http://www.gnu.org/licenses/>.
    25  *
    26  * \todo TODO: Deletion of solution tree on destroy and cleanup.
    2726 */
    2827
    2928#ifndef TSPSOLVER_H
    3029#define TSPSOLVER_H
    31 
    32 /*!
    33  * \file tspsolver.h
    34  * \brief Defines #tMatrix typedef, sStep struct and CTSPSolver class.
    35  */
    3630
    3731#include "globals.h"
     
    6761};
    6862
     63/*!
     64 * \brief This class solves Travelling Salesman Problem task.
     65 * \author Copyright &copy; 2007-2009 Lёppa <contacts[at]oleksii[dot]name>
     66 *
     67 * \todo TODO: Deletion of solution tree on destroy and cleanup.
     68 */
    6969class CTSPSolver
    7070{
     
    7474        CTSPSolver();
    7575        QString getSortedPath() const;
     76        static QString getVersionId();
    7677        bool isOptimal() const;
    7778        sStep *solve(int, tMatrix, QWidget *parent = 0);
    78         static QString getVersionId();
    7979
    8080private:
     
    8484        QHash<int,int> route;
    8585//      QHash<int,int> forbidden;
     86
    8687        double align(tMatrix &);
    8788        void cleanup();
    8889        bool findCandidate(tMatrix, int &, int &);
     90        double findMinInCol(int, tMatrix, int exr = -1);
    8991        double findMinInRow(int, tMatrix, int exc = -1);
    90         double findMinInCol(int, tMatrix, int exr = -1);
    9192        bool hasSubCycles(int, int);
    9293        void subCol(tMatrix &, int, double);
Note: See TracChangeset for help on using the changeset viewer.