Changeset e4ae9e95f7 in tspsg for src/tspsolver.h


Ignore:
Timestamp:
Jan 12, 2010, 4:27:52 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:
3e46075789
Parents:
fcd8c1e4c1
Message:

Back to double to maintain compatibility between platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tspsolver.h

    rfcd8c1e4c1 re4ae9e95f7  
    3434
    3535//! A matrix of city-to-city travel costs.
    36 typedef QList<QList<qreal> > TMatrix;
     36typedef QList<QList<double> > TMatrix;
    3737
    3838/*!
     
    6060struct SStep {
    6161        TMatrix matrix; //!< This step's matrix
    62         qreal price; //!< The price of travel to this step
     62        double price; //!< The price of travel to this step
    6363        SCandidate candidate; //!< A candiadate for branching in the current matrix
    6464        QList<SCandidate> alts; //!< A list of alternative branching candidates
     
    9898//      QHash<int,int> forbidden;
    9999
    100         qreal align(TMatrix &matrix);
     100        double align(TMatrix &matrix);
    101101        void cleanup();
    102102        void deleteNode(SStep *&node);
    103103        QList<SCandidate> findCandidate(const TMatrix &matrix, int &nRow, int &nCol) const;
    104         qreal findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
    105         qreal findMinInRow(int nRow, const TMatrix &matrix, int exc = -1) const;
     104        double findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
     105        double findMinInRow(int nRow, const TMatrix &matrix, int exc = -1) const;
    106106        bool hasSubCycles(int nRow, int nCol) const;
    107         void subCol(TMatrix &matrix, int nCol, qreal val);
    108         void subRow(TMatrix &matrix, int nRow, qreal val);
     107        void subCol(TMatrix &matrix, int nCol, double val);
     108        void subRow(TMatrix &matrix, int nRow, double val);
    109109};
    110110
Note: See TracChangeset for help on using the changeset viewer.