1 | <!-- This comment will put IE 6, 7 and 8 in quirks mode --> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
---|
6 | <title>TSPSG: TSP Solver and Generator: src/globals.h File Reference</title> |
---|
7 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
---|
8 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
---|
9 | <script type="text/javaScript" src="search/search.js"></script> |
---|
10 | <link href="doxygen.css" rel="stylesheet" type="text/css"/> |
---|
11 | </head> |
---|
12 | <body onload='searchBox.OnSelectItem(0);'> |
---|
13 | <!-- Generated by Doxygen 1.6.1 --> |
---|
14 | <script type="text/javascript"><!-- |
---|
15 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
---|
16 | --></script> |
---|
17 | <script type="text/javascript"> |
---|
18 | <!-- |
---|
19 | function changeDisplayState (e){ |
---|
20 | var num=this.id.replace(/[^[0-9]/g,''); |
---|
21 | var button=this.firstChild; |
---|
22 | var sectionDiv=document.getElementById('dynsection'+num); |
---|
23 | if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ |
---|
24 | sectionDiv.style.display='block'; |
---|
25 | button.src='open.gif'; |
---|
26 | }else{ |
---|
27 | sectionDiv.style.display='none'; |
---|
28 | button.src='closed.gif'; |
---|
29 | } |
---|
30 | } |
---|
31 | function initDynSections(){ |
---|
32 | var divs=document.getElementsByTagName('div'); |
---|
33 | var sectionCounter=1; |
---|
34 | for(var i=0;i<divs.length-1;i++){ |
---|
35 | if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ |
---|
36 | var header=divs[i]; |
---|
37 | var section=divs[i+1]; |
---|
38 | var button=header.firstChild; |
---|
39 | if (button!='IMG'){ |
---|
40 | divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); |
---|
41 | button=document.createElement('img'); |
---|
42 | divs[i].insertBefore(button,divs[i].firstChild); |
---|
43 | } |
---|
44 | header.style.cursor='pointer'; |
---|
45 | header.onclick=changeDisplayState; |
---|
46 | header.id='dynheader'+sectionCounter; |
---|
47 | button.src='closed.gif'; |
---|
48 | section.id='dynsection'+sectionCounter; |
---|
49 | section.style.display='none'; |
---|
50 | section.style.marginLeft='14px'; |
---|
51 | sectionCounter++; |
---|
52 | } |
---|
53 | } |
---|
54 | } |
---|
55 | window.onload = initDynSections; |
---|
56 | --> |
---|
57 | </script> |
---|
58 | <div class="navigation" id="top"> |
---|
59 | <div class="tabs"> |
---|
60 | <ul> |
---|
61 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
62 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
63 | <li><a href="annotated.html"><span>Classes</span></a></li> |
---|
64 | <li class="current"><a href="files.html"><span>Files</span></a></li> |
---|
65 | <li> |
---|
66 | <div id="MSearchBox" class="MSearchBoxInactive"> |
---|
67 | <img id="MSearchSelect" src="search/search.png" |
---|
68 | onmouseover="return searchBox.OnSearchSelectShow()" |
---|
69 | onmouseout="return searchBox.OnSearchSelectHide()" |
---|
70 | alt=""/> |
---|
71 | <input type="text" id="MSearchField" value="Search" accesskey="S" |
---|
72 | onfocus="searchBox.OnSearchFieldFocus(true)" |
---|
73 | onblur="searchBox.OnSearchFieldFocus(false)" |
---|
74 | onkeyup="searchBox.OnSearchFieldChange(event)"/> |
---|
75 | <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
---|
76 | </div> |
---|
77 | </li> |
---|
78 | </ul> |
---|
79 | </div> |
---|
80 | <div class="tabs"> |
---|
81 | <ul> |
---|
82 | <li><a href="files.html"><span>File List</span></a></li> |
---|
83 | <li><a href="globals.html"><span>File Members</span></a></li> |
---|
84 | </ul> |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | <div class="contents"> |
---|
88 | <h1>src/globals.h File Reference</h1> |
---|
89 | <p>Contains TSPSG global defines. |
---|
90 | <a href="#_details">More...</a></p> |
---|
91 | <code>#include <QtCore></code><br/> |
---|
92 | <code>#include <QtGui></code><br/> |
---|
93 | <code>#include "<a class="el" href="version_8h_source.html">version.h</a>"</code><br/> |
---|
94 | <code>#include "<a class="el" href="os_8h_source.html">os.h</a>"</code><br/> |
---|
95 | <div class="dynheader"> |
---|
96 | Include dependency graph for globals.h:</div> |
---|
97 | <div class="dynsection"> |
---|
98 | <div class="center"><img src="globals_8h__incl.png" border="0" usemap="#src_2globals_8h_map" alt=""/></div> |
---|
99 | <map name="src_2globals_8h_map" id="src_2globals_8h"> |
---|
100 | <area shape="rect" id="node7" href="version_8h.html" title="Contains TSPSG version information defines." alt="" coords="171,83,243,111"/> |
---|
101 | <area shape="rect" id="node9" href="os_8h.html" title="Contains TSPSG target CPU architecture and OS detection." alt="" coords="267,83,312,111"/> |
---|
102 | </map> |
---|
103 | </div> |
---|
104 | <div class="dynheader"> |
---|
105 | This graph shows which files directly or indirectly include this file:</div> |
---|
106 | <div class="dynsection"> |
---|
107 | <div class="center"><img src="globals_8h__dep__incl.png" border="0" usemap="#src_2globals_8hdep_map" alt=""/></div> |
---|
108 | <map name="src_2globals_8hdep_map" id="src_2globals_8hdep"> |
---|
109 | <area shape="rect" id="node3" href="mainwindow_8h.html" title="Defines MainWindow class." alt="" coords="79,238,202,266"/> |
---|
110 | <area shape="rect" id="node5" href="settingsdialog_8h.html" title="Defines SettingsDialog class." alt="" coords="22,161,155,189"/> |
---|
111 | <area shape="rect" id="node8" href="tspmodel_8h.html" title="Defines CTSPModel class." alt="" coords="138,83,245,111"/> |
---|
112 | <area shape="rect" id="node11" href="tspsolver_8h.html" title="Defines TMatrix typedef, SCandidate and SStep structs and CTSPSolver class." alt="" coords="230,161,334,189"/> |
---|
113 | </map> |
---|
114 | </div> |
---|
115 | |
---|
116 | <p><a href="globals_8h_source.html">Go to the source code of this file.</a></p> |
---|
117 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
118 | <tr><td colspan="2"><h2>Defines</h2></td></tr> |
---|
119 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21dd408136bbab225a4f5e2c42f85643"></a><!-- doxytag: member="globals.h::DEF_RAND_MIN" ref="a21dd408136bbab225a4f5e2c42f85643" args="" --> |
---|
120 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a21dd408136bbab225a4f5e2c42f85643">DEF_RAND_MIN</a> 1</td></tr> |
---|
121 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default minimum for random numbers generation. <br/></td></tr> |
---|
122 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9914e148840572bac46f451db4cb6e5"></a><!-- doxytag: member="globals.h::DEF_RAND_MAX" ref="af9914e148840572bac46f451db4cb6e5" args="" --> |
---|
123 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#af9914e148840572bac46f451db4cb6e5">DEF_RAND_MAX</a> 10</td></tr> |
---|
124 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default maximum for random numbers generation. <br/></td></tr> |
---|
125 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d1fa8b5b2b213595f30e55d75070ed2"></a><!-- doxytag: member="globals.h::DEF_NUM_CITIES" ref="a4d1fa8b5b2b213595f30e55d75070ed2" args="" --> |
---|
126 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a4d1fa8b5b2b213595f30e55d75070ed2">DEF_NUM_CITIES</a> 5</td></tr> |
---|
127 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default number of cities. <br/></td></tr> |
---|
128 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6bbdc41d8e9d2d8050fb973f058a5521"></a><!-- doxytag: member="globals.h::DEF_USE_NATIVE_DIALOGS" ref="a6bbdc41d8e9d2d8050fb973f058a5521" args="" --> |
---|
129 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a6bbdc41d8e9d2d8050fb973f058a5521">DEF_USE_NATIVE_DIALOGS</a> true</td></tr> |
---|
130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Use native file dialog". <br/></td></tr> |
---|
131 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a26cf35c10c1ed2eab930d839284842c6"></a><!-- doxytag: member="globals.h::DEF_AUTOSIZE" ref="a26cf35c10c1ed2eab930d839284842c6" args="" --> |
---|
132 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a26cf35c10c1ed2eab930d839284842c6">DEF_AUTOSIZE</a> true</td></tr> |
---|
133 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Automatically resize rows and columns to their contents". <br/></td></tr> |
---|
134 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad983bd19a9662c6cb6fe5ba981cbdbf4"></a><!-- doxytag: member="globals.h::DEF_SAVEPOS" ref="ad983bd19a9662c6cb6fe5ba981cbdbf4" args="" --> |
---|
135 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ad983bd19a9662c6cb6fe5ba981cbdbf4">DEF_SAVEPOS</a> false</td></tr> |
---|
136 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Save main window state and position". <br/></td></tr> |
---|
137 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a1e6c04461eabfc0cc0941d342ecfb4"></a><!-- doxytag: member="globals.h::DEF_FRACTIONAL_RANDOM" ref="a4a1e6c04461eabfc0cc0941d342ecfb4" args="" --> |
---|
138 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a4a1e6c04461eabfc0cc0941d342ecfb4">DEF_FRACTIONAL_RANDOM</a> false</td></tr> |
---|
139 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Fractional random values". <br/></td></tr> |
---|
140 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a616d74fa946123f424193b007d5a6382"></a><!-- doxytag: member="globals.h::DEF_SHOW_MATRIX" ref="a616d74fa946123f424193b007d5a6382" args="" --> |
---|
141 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a616d74fa946123f424193b007d5a6382">DEF_SHOW_MATRIX</a> true</td></tr> |
---|
142 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Show solution steps' matrices for every solution step". <br/></td></tr> |
---|
143 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae37fe7eb909d7fd076f067900e900c0e"></a><!-- doxytag: member="globals.h::DEF_USE_SHOW_MATRIX_LIMIT" ref="ae37fe7eb909d7fd076f067900e900c0e" args="" --> |
---|
144 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ae37fe7eb909d7fd076f067900e900c0e">DEF_USE_SHOW_MATRIX_LIMIT</a> true</td></tr> |
---|
145 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Show or hide solution steps' matrices based on number of cities in the task". <br/></td></tr> |
---|
146 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a261331d449328e53926027d021757d57"></a><!-- doxytag: member="globals.h::DEF_SHOW_MATRIX_LIMIT" ref="a261331d449328e53926027d021757d57" args="" --> |
---|
147 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a261331d449328e53926027d021757d57">DEF_SHOW_MATRIX_LIMIT</a> 15</td></tr> |
---|
148 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Maximum number of cities to show solution steps' matrices". <br/></td></tr> |
---|
149 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6831bc2c2f11c3a14382c8fbe8d87efe"></a><!-- doxytag: member="globals.h::DEF_SCROLL_TO_END" ref="a6831bc2c2f11c3a14382c8fbe8d87efe" args="" --> |
---|
150 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a6831bc2c2f11c3a14382c8fbe8d87efe">DEF_SCROLL_TO_END</a> true</td></tr> |
---|
151 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default for "Scroll to the end of output after solving". <br/></td></tr> |
---|
152 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2982eb0f2aea4cff78bd4aa767ff1988"></a><!-- doxytag: member="globals.h::DEF_FONT_FAMILY" ref="a2982eb0f2aea4cff78bd4aa767ff1988" args="" --> |
---|
153 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a2982eb0f2aea4cff78bd4aa767ff1988">DEF_FONT_FAMILY</a> "Courier New"</td></tr> |
---|
154 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default font name. <br/></td></tr> |
---|
155 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab73bf542bad61b0b720c0495ef612105"></a><!-- doxytag: member="globals.h::DEF_FONT_SIZE" ref="ab73bf542bad61b0b720c0495ef612105" args="" --> |
---|
156 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ab73bf542bad61b0b720c0495ef612105">DEF_FONT_SIZE</a> 10</td></tr> |
---|
157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default font size. <br/></td></tr> |
---|
158 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6bbeb8fbbb2c6ec31993ff56f6b695e3"></a><!-- doxytag: member="globals.h::DEF_FONT_COLOR" ref="a6bbeb8fbbb2c6ec31993ff56f6b695e3" args="" --> |
---|
159 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a6bbeb8fbbb2c6ec31993ff56f6b695e3">DEF_FONT_COLOR</a> Qt::black</td></tr> |
---|
160 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Default font color. <br/></td></tr> |
---|
161 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70edda218af688662bb006cf0552544e"></a><!-- doxytag: member="globals.h::MAX_NUM_CITIES" ref="a70edda218af688662bb006cf0552544e" args="" --> |
---|
162 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a70edda218af688662bb006cf0552544e">MAX_NUM_CITIES</a> 50</td></tr> |
---|
163 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum available number of cities. <br/></td></tr> |
---|
164 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1703614f274735e91c1539048ef1093f"></a><!-- doxytag: member="globals.h::MAX_RAND_VALUE" ref="a1703614f274735e91c1539048ef1093f" args="" --> |
---|
165 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a1703614f274735e91c1539048ef1093f">MAX_RAND_VALUE</a> 1000</td></tr> |
---|
166 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum allowed value for random generation limits. <br/></td></tr> |
---|
167 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab1289b7280bd75b023ef2d5b19880af9"></a><!-- doxytag: member="globals.h::PATH_I18N" ref="ab1289b7280bd75b023ef2d5b19880af9" args="" --> |
---|
168 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ab1289b7280bd75b023ef2d5b19880af9">PATH_I18N</a> "i18n"</td></tr> |
---|
169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Bath to internationalization files. <br/></td></tr> |
---|
170 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93de9563d724c12880c908961ca78dae"></a><!-- doxytag: member="globals.h::PATH_DOCS" ref="a93de9563d724c12880c908961ca78dae" args="" --> |
---|
171 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a93de9563d724c12880c908961ca78dae">PATH_DOCS</a> "help"</td></tr> |
---|
172 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Bath to documentation files. <br/></td></tr> |
---|
173 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd9c3c65456a20b4b281165a29583e78"></a><!-- doxytag: member="globals.h::TSPT" ref="abd9c3c65456a20b4b281165a29583e78" args="" --> |
---|
174 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#abd9c3c65456a20b4b281165a29583e78">TSPT</a> quint32(0x54535054)</td></tr> |
---|
175 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TSPSG Task file signature - letters <code>TSPT</code>. <br/></td></tr> |
---|
176 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc611d658b90f441ae837a2478b5bdb1"></a><!-- doxytag: member="globals.h::TSPT_VERSION" ref="afc611d658b90f441ae837a2478b5bdb1" args="" --> |
---|
177 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#afc611d658b90f441ae837a2478b5bdb1">TSPT_VERSION</a> quint8(1)</td></tr> |
---|
178 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TSPSG Task file version. <br/></td></tr> |
---|
179 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c516e985c6e8edf1b54bcd7c15ad89c"></a><!-- doxytag: member="globals.h::TSPT_META_VERSION" ref="a4c516e985c6e8edf1b54bcd7c15ad89c" args="" --> |
---|
180 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a4c516e985c6e8edf1b54bcd7c15ad89c">TSPT_META_VERSION</a> quint8(1)</td></tr> |
---|
181 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TSPSG Task file metadata version. <br/></td></tr> |
---|
182 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98ea46119cfda59f7b9c6f50ef72636e"></a><!-- doxytag: member="globals.h::TSPT_META_SIZE" ref="a98ea46119cfda59f7b9c6f50ef72636e" args="" --> |
---|
183 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a98ea46119cfda59f7b9c6f50ef72636e">TSPT_META_SIZE</a> 2</td></tr> |
---|
184 | <tr><td class="mdescLeft"> </td><td class="mdescRight">TSPSG Task file metadata size in bytes (incl. version). <br/></td></tr> |
---|
185 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a437bcbf6414d33f7a885a4507c1b9940"></a><!-- doxytag: member="globals.h::ZKT" ref="a437bcbf6414d33f7a885a4507c1b9940" args="" --> |
---|
186 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a437bcbf6414d33f7a885a4507c1b9940">ZKT</a> quint16(0x5A4B)</td></tr> |
---|
187 | <tr><td class="mdescLeft"> </td><td class="mdescRight">ZKomModRd Task file signature - letters <code>ZK</code>. <br/></td></tr> |
---|
188 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6d630d0a03e4e53fceb0567653ca629"></a><!-- doxytag: member="globals.h::ZKT_VERSION" ref="ab6d630d0a03e4e53fceb0567653ca629" args="" --> |
---|
189 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ab6d630d0a03e4e53fceb0567653ca629">ZKT_VERSION</a> quint8(1)</td></tr> |
---|
190 | <tr><td class="mdescLeft"> </td><td class="mdescRight">ZKomModRd Task file version. <br/></td></tr> |
---|
191 | <tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a956e2723d559858d08644ac99146e910">INFINITY</a> 1.7E+308</td></tr> |
---|
192 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This value means infinity :-). <a href="#a956e2723d559858d08644ac99146e910"></a><br/></td></tr> |
---|
193 | <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ae8033146e07fa0bae37f148b90cd6b"></a><!-- doxytag: member="globals.h::INFSTR" ref="a1ae8033146e07fa0bae37f148b90cd6b" args="" --> |
---|
194 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a1ae8033146e07fa0bae37f148b90cd6b">INFSTR</a> "---"</td></tr> |
---|
195 | <tr><td class="mdescLeft"> </td><td class="mdescRight">This string represents infinite value in the table. <br/></td></tr> |
---|
196 | <tr><td colspan="2"><h2>Functions</h2></td></tr> |
---|
197 | <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2">isInteger</a> (double x)</td></tr> |
---|
198 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Checks whether <em>x</em> contains an integer value. <a href="#a594842d2fcaf774c3c42b944f3f031d2"></a><br/></td></tr> |
---|
199 | </table> |
---|
200 | <hr/><a name="_details"></a><h2>Detailed Description</h2> |
---|
201 | <p>Contains TSPSG global defines. </p> |
---|
202 | <dl class="author"><dt><b>Author:</b></dt><dd>Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name></dd></dl> |
---|
203 | <dl class="rcs"><dt><b>Id</b></dt><dd><a class="el" href="globals_8h.html" title="Contains TSPSG global defines.">globals.h</a> 82 2010-01-07 14:48:24Z laleppa </dd></dl> |
---|
204 | <dl class="rcs"><dt><b>URL</b></dt><dd><a href="https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/globals.h">https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/globals.h</a> </dd></dl> |
---|
205 | <p><b>TSPSG: TSP Solver and Generator</b></p> |
---|
206 | <p>This file is part of TSPSG.</p> |
---|
207 | <p>TSPSG is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p> |
---|
208 | <p>TSPSG is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p> |
---|
209 | <p>You should have received a copy of the GNU General Public License along with TSPSG. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>. </p> |
---|
210 | <hr/><h2>Define Documentation</h2> |
---|
211 | <a class="anchor" id="a956e2723d559858d08644ac99146e910"></a><!-- doxytag: member="globals.h::INFINITY" ref="a956e2723d559858d08644ac99146e910" args="" --> |
---|
212 | <div class="memitem"> |
---|
213 | <div class="memproto"> |
---|
214 | <table class="memname"> |
---|
215 | <tr> |
---|
216 | <td class="memname">#define INFINITY 1.7E+308</td> |
---|
217 | </tr> |
---|
218 | </table> |
---|
219 | </div> |
---|
220 | <div class="memdoc"> |
---|
221 | |
---|
222 | <p>This value means infinity :-). </p> |
---|
223 | <p>Some libraries already have <code>INFINITY</code> defined. We need to redefine it for the <code>INFINITY</code> to always have the same value. </p> |
---|
224 | |
---|
225 | </div> |
---|
226 | </div> |
---|
227 | <hr/><h2>Function Documentation</h2> |
---|
228 | <a class="anchor" id="a594842d2fcaf774c3c42b944f3f031d2"></a><!-- doxytag: member="globals.h::isInteger" ref="a594842d2fcaf774c3c42b944f3f031d2" args="(double x)" --> |
---|
229 | <div class="memitem"> |
---|
230 | <div class="memproto"> |
---|
231 | <table class="memname"> |
---|
232 | <tr> |
---|
233 | <td class="memname">bool isInteger </td> |
---|
234 | <td>(</td> |
---|
235 | <td class="paramtype">double </td> |
---|
236 | <td class="paramname"> <em>x</em></td> |
---|
237 | <td> ) </td> |
---|
238 | <td><code> [inline]</code></td> |
---|
239 | </tr> |
---|
240 | </table> |
---|
241 | </div> |
---|
242 | <div class="memdoc"> |
---|
243 | |
---|
244 | <p>Checks whether <em>x</em> contains an integer value. </p> |
---|
245 | <dl><dt><b>Parameters:</b></dt><dd> |
---|
246 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
247 | <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>A value to check. </td></tr> |
---|
248 | </table> |
---|
249 | </dd> |
---|
250 | </dl> |
---|
251 | <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>x</em> countains an integer, oherwise <code>false</code>. </dd></dl> |
---|
252 | |
---|
253 | </div> |
---|
254 | </div> |
---|
255 | </div> |
---|
256 | <!--- window showing the filter options --> |
---|
257 | <div id="MSearchSelectWindow" |
---|
258 | onmouseover="return searchBox.OnSearchSelectShow()" |
---|
259 | onmouseout="return searchBox.OnSearchSelectHide()" |
---|
260 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
---|
261 | <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> |
---|
262 | |
---|
263 | <!-- iframe showing the search results (closed by default) --> |
---|
264 | <div id="MSearchResultsWindow"> |
---|
265 | <iframe src="" frameborder="0" |
---|
266 | name="MSearchResults" id="MSearchResults"> |
---|
267 | </iframe> |
---|
268 | </div> |
---|
269 | |
---|
270 | <hr size="1"/><address style="text-align: right;"><small>Generated on Thu Jan 7 18:22:45 2010 for TSPSG: TSP Solver and Generator by |
---|
271 | <a href="http://www.doxygen.org/index.html"> |
---|
272 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> |
---|
273 | </body> |
---|
274 | </html> |
---|