Changeset 112 in tspsg-svn for trunk/docs/html/globals_8h_source.html
- Timestamp:
- Apr 28, 2010, 1:56:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/html/globals_8h_source.html
r103 r112 61 61 <li><a href="index.html"><span>Main Page</span></a></li> 62 62 <li><a href="pages.html"><span>Related Pages</span></a></li> 63 <li><a href="namespaces.html"><span>Namespaces</span></a></li> 63 64 <li><a href="annotated.html"><span>Classes</span></a></li> 64 65 <li class="current"><a href="files.html"><span>Files</span></a></li> … … 91 92 <a name="l00032"></a>00032 <span class="preprocessor">#include <QtCore></span> 92 93 <a name="l00033"></a>00033 <span class="preprocessor">#include <QtGui></span> 93 <a name="l00034"></a>00034 <span class="preprocessor">#include <limits></span> 94 <a name="l00035"></a>00035 95 <a name="l00036"></a>00036 <span class="comment">// Version info</span> 96 <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="version_8h.html" title="Contains TSPSG version information defines.">version.h</a>"</span> 97 <a name="l00038"></a>00038 <span class="comment">// OS and ARCH detection</span> 98 <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="os_8h.html" title="Contains TSPSG target CPU architecture and OS detection.">os.h</a>"</span> 99 <a name="l00040"></a>00040 <span class="comment">// TSPSG Defaults</span> 100 <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="defaults_8h.html" title="Contains TSPSG defaults.">defaults.h</a>"</span> 101 <a name="l00042"></a>00042 <span class="preprocessor">#ifdef Q_OS_WIN32</span> 102 <a name="l00043"></a>00043 <span class="preprocessor"></span> <span class="comment">// Vista/7 Eyecandy</span> 103 <a name="l00044"></a>00044 <span class="preprocessor"> #include "<a class="code" href="qtwin_8h.html">qtwin.h</a>"</span> 104 <a name="l00045"></a>00045 <span class="preprocessor">#endif // Q_OS_WIN32</span> 105 <a name="l00046"></a>00046 <span class="preprocessor"></span> 106 <a name="l00047"></a>00047 <span class="comment">// DEFINES</span> 107 <a name="l00049"></a><a class="code" href="globals_8h.html#a70edda218af688662bb006cf0552544e">00049</a> <span class="comment"></span><span class="preprocessor">#define MAX_NUM_CITIES 50</span> 108 <a name="l00051"></a><a class="code" href="globals_8h.html#a1703614f274735e91c1539048ef1093f">00051</a> <span class="preprocessor">#define MAX_RAND_VALUE 1000</span> 109 <a name="l00052"></a>00052 <span class="preprocessor"></span> 110 <a name="l00053"></a>00053 <span class="comment">// Paths</span> 111 <a name="l00058"></a>00058 <span class="comment"></span><span class="preprocessor">#ifndef PATH_L10N</span> 112 <a name="l00059"></a><a class="code" href="globals_8h.html#a27fa861afe50713394493c32c26741b9">00059</a> <span class="preprocessor"></span><span class="preprocessor"> #define PATH_L10N "l10n"</span> 113 <a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif // PATH_L10N</span> 114 <a name="l00061"></a>00061 <span class="preprocessor"></span> 115 <a name="l00065"></a>00065 <span class="preprocessor">#ifndef PATH_DOCS</span> 116 <a name="l00066"></a><a class="code" href="globals_8h.html#a93de9563d724c12880c908961ca78dae">00066</a> <span class="preprocessor"></span><span class="preprocessor"> #define PATH_DOCS "help"</span> 117 <a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#endif // PATH_DOCS</span> 118 <a name="l00068"></a>00068 <span class="preprocessor"></span> 119 <a name="l00070"></a><a class="code" href="globals_8h.html#abd9c3c65456a20b4b281165a29583e78">00070</a> <span class="preprocessor">#define TSPT quint32(0x54535054)</span> 120 <a name="l00072"></a><a class="code" href="globals_8h.html#afc611d658b90f441ae837a2478b5bdb1">00072</a> <span class="preprocessor">#define TSPT_VERSION quint8(1)</span> 121 <a name="l00074"></a><a class="code" href="globals_8h.html#a4c516e985c6e8edf1b54bcd7c15ad89c">00074</a> <span class="preprocessor">#define TSPT_META_VERSION quint8(1)</span> 122 <a name="l00076"></a><a class="code" href="globals_8h.html#a98ea46119cfda59f7b9c6f50ef72636e">00076</a> <span class="preprocessor">#define TSPT_META_SIZE 2</span> 123 <a name="l00078"></a><a class="code" href="globals_8h.html#a437bcbf6414d33f7a885a4507c1b9940">00078</a> <span class="preprocessor">#define ZKT quint16(0x5A4B)</span> 124 <a name="l00080"></a><a class="code" href="globals_8h.html#ab6d630d0a03e4e53fceb0567653ca629">00080</a> <span class="preprocessor">#define ZKT_VERSION quint8(1)</span> 125 <a name="l00081"></a>00081 <span class="preprocessor"></span> 126 <a name="l00089"></a>00089 <span class="preprocessor">#ifdef INFINITY</span> 127 <a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor"> #undef INFINITY</span> 128 <a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 129 <a name="l00092"></a><a class="code" href="globals_8h.html#a956e2723d559858d08644ac99146e910">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define INFINITY std::numeric_limits<double>::infinity()</span> 130 <a name="l00094"></a><a class="code" href="globals_8h.html#a1ae8033146e07fa0bae37f148b90cd6b">00094</a> <span class="preprocessor">#define INFSTR "---"</span> 131 <a name="l00095"></a>00095 <span class="preprocessor"></span> 132 <a name="l00096"></a>00096 <span class="comment">// FUNCTIONS</span> 133 <a name="l00102"></a><a class="code" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2">00102</a> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2" title="Checks whether x contains an integer value.">isInteger</a>(<span class="keywordtype">double</span> x) 134 <a name="l00103"></a>00103 { 135 <a name="l00104"></a>00104 <span class="keywordtype">double</span> i; 136 <a name="l00105"></a>00105 <span class="keywordflow">return</span> (modf(x, &i) == 0.0); 137 <a name="l00106"></a>00106 } 138 <a name="l00107"></a>00107 139 <a name="l00108"></a>00108 <span class="preprocessor">#ifdef Q_OS_WIN32</span> 140 <a name="l00109"></a>00109 <span class="preprocessor"></span> 141 <a name="l00116"></a>00116 <span class="keywordtype">void</span> toggleStyle(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html">QWidget</a> *widget, <span class="keywordtype">bool</span> enable); 142 <a name="l00117"></a>00117 <span class="preprocessor">#endif // Q_OS_WIN32</span> 143 <a name="l00118"></a>00118 <span class="preprocessor"></span> 144 <a name="l00119"></a>00119 <span class="preprocessor">#if defined(Q_OS_WINCE_WM) || defined(Q_OS_SYMBIAN)</span> 145 <a name="l00121"></a>00121 <span class="preprocessor"> #define HANDHELD</span> 94 <a name="l00034"></a>00034 <span class="preprocessor">#if !defined(NOSVG) && (QT_VERSION >= 0x040500)</span> 95 <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor"> #include <QtSvg></span> 96 <a name="l00036"></a>00036 <span class="preprocessor">#endif // NOSVG && QT_VERSION >= 0x040500</span> 97 <a name="l00037"></a>00037 <span class="preprocessor"></span> 98 <a name="l00038"></a>00038 <span class="comment">// Version info</span> 99 <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="version_8h.html" title="Contains TSPSG version information defines.">version.h</a>"</span> 100 <a name="l00040"></a>00040 <span class="comment">// OS and ARCH detection</span> 101 <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="os_8h.html" title="Contains TSPSG target CPU architecture and OS detection.">os.h</a>"</span> 102 <a name="l00042"></a>00042 <span class="comment">// TSPSG Defaults</span> 103 <a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="defaults_8h.html" title="Contains TSPSG defaults.">defaults.h</a>"</span> 104 <a name="l00044"></a>00044 <span class="comment">// TSPSolver</span> 105 <a name="l00045"></a>00045 <span class="preprocessor">#include "<a class="code" href="tspsolver_8h.html" title="Defines TSPSolver namespace and everything needed for solving TSP tasks.">tspsolver.h</a>"</span> 106 <a name="l00046"></a>00046 <span class="preprocessor">#ifdef Q_OS_WIN32</span> 107 <a name="l00047"></a>00047 <span class="preprocessor"></span> <span class="comment">// Vista/7 Eyecandy</span> 108 <a name="l00048"></a>00048 <span class="preprocessor"> #include "<a class="code" href="qtwin_8h.html">qtwin.h</a>"</span> 109 <a name="l00049"></a>00049 <span class="preprocessor">#endif // Q_OS_WIN32</span> 110 <a name="l00050"></a>00050 <span class="preprocessor"></span> 111 <a name="l00051"></a>00051 <span class="comment">// DEFINES</span> 112 <a name="l00053"></a><a class="code" href="globals_8h.html#a70edda218af688662bb006cf0552544e">00053</a> <span class="comment"></span><span class="preprocessor">#define MAX_NUM_CITIES 50</span> 113 <a name="l00055"></a><a class="code" href="globals_8h.html#a1703614f274735e91c1539048ef1093f">00055</a> <span class="preprocessor">#define MAX_RAND_VALUE 1000</span> 114 <a name="l00056"></a>00056 <span class="preprocessor"></span> 115 <a name="l00057"></a>00057 <span class="comment">// Paths</span> 116 <a name="l00062"></a>00062 <span class="comment"></span><span class="preprocessor">#ifndef PATH_L10N</span> 117 <a name="l00063"></a><a class="code" href="globals_8h.html#a27fa861afe50713394493c32c26741b9">00063</a> <span class="preprocessor"></span><span class="preprocessor"> #define PATH_L10N "l10n"</span> 118 <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#endif // PATH_L10N</span> 119 <a name="l00065"></a>00065 <span class="preprocessor"></span> 120 <a name="l00069"></a>00069 <span class="preprocessor">#ifndef PATH_DOCS</span> 121 <a name="l00070"></a><a class="code" href="globals_8h.html#a93de9563d724c12880c908961ca78dae">00070</a> <span class="preprocessor"></span><span class="preprocessor"> #define PATH_DOCS "help"</span> 122 <a name="l00071"></a>00071 <span class="preprocessor"></span><span class="preprocessor">#endif // PATH_DOCS</span> 123 <a name="l00072"></a>00072 <span class="preprocessor"></span> 124 <a name="l00074"></a><a class="code" href="globals_8h.html#abd9c3c65456a20b4b281165a29583e78">00074</a> <span class="preprocessor">#define TSPT quint32(0x54535054)</span> 125 <a name="l00076"></a><a class="code" href="globals_8h.html#afc611d658b90f441ae837a2478b5bdb1">00076</a> <span class="preprocessor">#define TSPT_VERSION quint8(1)</span> 126 <a name="l00078"></a><a class="code" href="globals_8h.html#a4c516e985c6e8edf1b54bcd7c15ad89c">00078</a> <span class="preprocessor">#define TSPT_META_VERSION quint8(1)</span> 127 <a name="l00080"></a><a class="code" href="globals_8h.html#a98ea46119cfda59f7b9c6f50ef72636e">00080</a> <span class="preprocessor">#define TSPT_META_SIZE 2</span> 128 <a name="l00082"></a><a class="code" href="globals_8h.html#a437bcbf6414d33f7a885a4507c1b9940">00082</a> <span class="preprocessor">#define ZKT quint16(0x5A4B)</span> 129 <a name="l00084"></a><a class="code" href="globals_8h.html#ab6d630d0a03e4e53fceb0567653ca629">00084</a> <span class="preprocessor">#define ZKT_VERSION quint8(1)</span> 130 <a name="l00085"></a>00085 <span class="preprocessor"></span> 131 <a name="l00087"></a><a class="code" href="globals_8h.html#a1ae8033146e07fa0bae37f148b90cd6b">00087</a> <span class="preprocessor">#define INFSTR "---"</span> 132 <a name="l00088"></a>00088 <span class="preprocessor"></span> 133 <a name="l00089"></a>00089 <span class="comment">// FUNCTIONS</span> 134 <a name="l00095"></a><a class="code" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2">00095</a> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2" title="Checks whether x contains an integer value.">isInteger</a>(<span class="keywordtype">double</span> x) 135 <a name="l00096"></a>00096 { 136 <a name="l00097"></a>00097 <span class="keywordtype">double</span> i; 137 <a name="l00098"></a>00098 <span class="keywordflow">return</span> (modf(x, &i) == 0.0); 138 <a name="l00099"></a>00099 } 139 <a name="l00100"></a>00100 140 <a name="l00101"></a>00101 <span class="preprocessor">#ifdef Q_OS_WIN32</span> 141 <a name="l00102"></a>00102 <span class="preprocessor"></span> 142 <a name="l00109"></a>00109 <span class="keywordtype">void</span> toggleStyle(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html">QWidget</a> *widget, <span class="keywordtype">bool</span> enable); 143 <a name="l00110"></a>00110 <span class="preprocessor">#endif // Q_OS_WIN32</span> 144 <a name="l00111"></a>00111 <span class="preprocessor"></span> 145 <a name="l00112"></a>00112 <span class="preprocessor">#if defined(Q_OS_WINCE_WM) || defined(Q_OS_SYMBIAN)</span> 146 <a name="l00114"></a>00114 <span class="preprocessor"> #define HANDHELD</span> 147 <a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 148 <a name="l00116"></a>00116 <span class="preprocessor"></span> 149 <a name="l00117"></a>00117 <span class="comment">// Sanity checks</span> 150 <a name="l00118"></a>00118 <span class="comment">// Check that default number of cities is sane (<= MAX_NUM_CITIES)</span> 151 <a name="l00119"></a>00119 <span class="preprocessor">#if DEF_NUM_CITIES > MAX_NUM_CITIES</span> 152 <a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_NUM_CITIES</span> 153 <a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_NUM_CITIES MAX_NUM_CITIES</span> 146 154 <a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 147 <a name="l00123"></a>00123 <span class="preprocessor"></span> 148 <a name="l00124"></a>00124 <span class="comment">// Sanity checks</span> 149 <a name="l00125"></a>00125 <span class="comment">// Check that default number of cities is sane (<= MAX_NUM_CITIES)</span> 150 <a name="l00126"></a>00126 <span class="preprocessor">#if DEF_NUM_CITIES > MAX_NUM_CITIES</span> 151 <a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_NUM_CITIES</span> 152 <a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_NUM_CITIES MAX_NUM_CITIES</span> 153 <a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 154 <a name="l00130"></a>00130 <span class="preprocessor"></span><span class="comment">// Check that maximum for random generation is sane (<= MAX_RAND_VALUE)</span> 155 <a name="l00131"></a>00131 <span class="preprocessor">#if DEF_RAND_MAX > MAX_RAND_VALUE</span> 156 <a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_RAND_MAX</span> 157 <a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_RAND_MAX MAX_RAND_VALUE</span> 158 <a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 159 <a name="l00135"></a>00135 <span class="preprocessor"></span><span class="comment">// Check that DEF_RAND_MIN <= DEF_RAND_MAX</span> 160 <a name="l00136"></a>00136 <span class="preprocessor">#if DEF_RAND_MIN > DEF_RAND_MAX</span> 161 <a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_RAND_MIN</span> 162 <a name="l00138"></a>00138 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_RAND_MIN DEF_RAND_MAX</span> 163 <a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 164 <a name="l00140"></a>00140 <span class="preprocessor"></span> 165 <a name="l00141"></a>00141 <span class="preprocessor">#endif // GLOBALS_H</span> 155 <a name="l00123"></a>00123 <span class="preprocessor"></span><span class="comment">// Check that maximum for random generation is sane (<= MAX_RAND_VALUE)</span> 156 <a name="l00124"></a>00124 <span class="preprocessor">#if DEF_RAND_MAX > MAX_RAND_VALUE</span> 157 <a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_RAND_MAX</span> 158 <a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_RAND_MAX MAX_RAND_VALUE</span> 159 <a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 160 <a name="l00128"></a>00128 <span class="preprocessor"></span><span class="comment">// Check that DEF_RAND_MIN <= DEF_RAND_MAX</span> 161 <a name="l00129"></a>00129 <span class="preprocessor">#if DEF_RAND_MIN > DEF_RAND_MAX</span> 162 <a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor"> #undef DEF_RAND_MIN</span> 163 <a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor"> #define DEF_RAND_MIN DEF_RAND_MAX</span> 164 <a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#endif</span> 165 <a name="l00133"></a>00133 <span class="preprocessor"></span> 166 <a name="l00134"></a>00134 <span class="preprocessor">#endif // GLOBALS_H</span> 166 167 </pre></div></div> 167 168 <!--- window showing the filter options --> … … 170 171 onmouseout="return searchBox.OnSearchSelectHide()" 171 172 onkeydown="return searchBox.OnSearchSelectKey(event)"> 172 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span> Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Defines</a></div>173 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Defines</a></div> 173 174 174 175 <!-- iframe showing the search results (closed by default) --> … … 179 180 </div> 180 181 181 <hr size="1"/><address style="text-align: right;"><small>Generated on Fri Apr 9 00:25:382010 for TSPSG: TSP Solver and Generator by 182 <hr size="1"/><address style="text-align: right;"><small>Generated on Wed Apr 28 02:47:10 2010 for TSPSG: TSP Solver and Generator by 182 183 <a href="http://www.doxygen.org/index.html"> 183 184 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
Note: See TracChangeset
for help on using the changeset viewer.