Changeset 2bc8e278b7 in tspsg for src/tspmodel.h
- Timestamp:
- Nov 5, 2007, 1:32:40 AM (17 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- bcfd415fe2
- Parents:
- 2f915f19f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tspmodel.h
r2f915f19f2 r2bc8e278b7 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 L ¸ppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com> 4 4 * 5 5 * $Id$ … … 25 25 #define TSPMODEL_H 26 26 27 // Decided, that static array with 100 of cities maximum hard limit 28 // will be enough for most cases, but the code will be simplier than 29 // when using dynamic lists. If you need more, just change this value 30 // and recompile the program ;-) 31 #define MAX_CITIES 100 32 // This value means infinity :-) 33 #define INFINITY 1.7E+308 34 // This is string, which represents infinite value in table 35 #define INFSTR "---" 36 27 37 #include <QAbstractTableModel> 28 38 … … 40 50 int numCities() const; 41 51 void setNumCities(int); 52 void randomize(); 42 53 int randMin; 43 54 int randMax; 44 55 private: 45 QList<QList<double> *> table;56 double table[MAX_CITIES][MAX_CITIES]; 46 57 int nCities; 47 58 int rand(int, int);
Note: See TracChangeset
for help on using the changeset viewer.