Changeset 15 in tspsg-svn for trunk/src/tspmodel.h
- Timestamp:
- Nov 5, 2007, 1:32:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tspmodel.h
r14 r15 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.