📄 typedecl_8h-source.html
字号:
00150 00151 <font class="keyword">template</font><>00152 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOf(<font class="keywordtype">long</font>&) { 00153 <font class="keywordflow">return</font> &RTTIType::longType;00154 }00155 00156 <font class="keyword">template</font><>00157 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOf(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>&) { 00158 <font class="keywordflow">return</font> &RTTIType::ulongType;00159 }00160 00161 <font class="keyword">template</font><>00162 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOf(<font class="keywordtype">float</font>&) { 00163 <font class="keywordflow">return</font> &RTTIType::floatType;00164 }00165 00166 <font class="keyword">template</font><>00167 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOf(<font class="keywordtype">double</font>&) { 00168 <font class="keywordflow">return</font> &RTTIType::doubleType;00169 }00170 00171 <font class="keyword">template</font><>00172 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOf(<font class="keywordtype">bool</font>&) { 00173 <font class="keywordflow">return</font> &RTTIType::boolType;00174 }00175 00176 00177 <font class="keyword">const</font> <font class="keywordtype">int</font> RTTI_MAX_PARAMETERS = 5;00178 00179 00180 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">char</font>*) { 00181 <font class="keywordflow">return</font> &RTTIType::charType;00182 }00183 00184 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font>*) {00185 <font class="keywordflow">return</font> &RTTIType::ucharType;00186 }00187 00188 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">signed</font> <font class="keywordtype">char</font>*) {00189 <font class="keywordflow">return</font> &RTTIType::scharType;00190 }00191 00192 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">short</font>*) {00193 <font class="keywordflow">return</font> &RTTIType::shortType;00194 }00195 00196 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>*) { 00197 <font class="keywordflow">return</font> &RTTIType::ushortType;00198 }00199 00200 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">int</font>*) {00201 <font class="keywordflow">return</font> &RTTIType::intType;00202 }00203 00204 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>*) { 00205 <font class="keywordflow">return</font> &RTTIType::uintType;00206 }00207 00208 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">long</font>*) { 00209 <font class="keywordflow">return</font> &RTTIType::longType;00210 }00211 00212 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font>*) { 00213 <font class="keywordflow">return</font> &RTTIType::ulongType;00214 }00215 00216 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">float</font>*) { 00217 <font class="keywordflow">return</font> &RTTIType::floatType;00218 }00219 00220 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">double</font>*) { 00221 <font class="keywordflow">return</font> &RTTIType::doubleType;00222 }00223 00224 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">bool</font>*) { 00225 <font class="keywordflow">return</font> &RTTIType::boolType;00226 }00227 00228 <font class="preprocessor">#if defined(__GNUC__) && __GNUC_MINOR__ < 96</font>00229 <font class="preprocessor"></font><font class="keyword">template</font><<font class="keyword">class</font> __P>00230 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(__P <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00231 <font class="keyword">extern</font> <a class="code" href="classRTTIClassDescriptor.html">RTTIClassDescriptor</a>* RTTIGetClassDescriptor(__P*);00232 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(RTTIGetClassDescriptor((__P*)0));00233 }00234 <font class="preprocessor">#else</font>00235 <font class="preprocessor"></font><font class="keyword">template</font><<font class="keyword">class</font> __P>00236 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(__P <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00237 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&__P::RTTIDescriptor);00238 }00239 <font class="preprocessor">#endif</font>00240 <font class="preprocessor"></font>00241 00242 <font class="keyword">template</font><>00243 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">char</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00244 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::charType);00245 }00246 00247 <font class="keyword">template</font><>00248 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) {00249 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::ucharType);00250 }00251 00252 <font class="keyword">template</font><>00253 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">signed</font> <font class="keywordtype">char</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) {00254 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::scharType);00255 }00256 00257 <font class="keyword">template</font><>00258 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">short</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) {00259 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::shortType);00260 }00261 00262 <font class="keyword">template</font><>00263 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00264 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::ushortType);00265 }00266 00267 <font class="keyword">template</font><>00268 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">int</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) {00269 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::intType);00270 }00271 00272 <font class="keyword">template</font><>00273 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00274 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::uintType);00275 }00276 00277 <font class="keyword">template</font><>00278 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">long</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00279 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::longType);00280 }00281 00282 <font class="keyword">template</font><>00283 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">unsigned</font> <font class="keywordtype">long</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00284 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::ulongType);00285 }00286 00287 <font class="keyword">template</font><>00288 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">float</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00289 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::floatType);00290 }00291 00292 <font class="keyword">template</font><>00293 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">double</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00294 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::doubleType);00295 }00296 00297 <font class="keyword">template</font><>00298 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtr(<font class="keywordtype">bool</font> <font class="keyword">const</font>*<font class="keyword">const</font>*) { 00299 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(&RTTIType::boolType);00300 }00301 00302 <font class="preprocessor">#if defined(__GNUC__) && __GNUC_MINOR__ < 96</font>00303 <font class="preprocessor"></font><font class="keyword">template</font><<font class="keyword">class</font> __P>00304 <font class="keyword">inline</font> <a class="code" href="classRTTIType.html">RTTIType</a>* RTTITypeOfPtrToPtr(__P <font class="keyword">const</font>*<font class="keyword">const</font>*<font class="keyword">const</font>*) { 00305 <font class="keyword">extern</font> <a class="code" href="classRTTIClassDescriptor.html">RTTIClassDescriptor</a>* RTTIGetClassDescriptor(__P*);00306 <font class="keywordflow">return</font> <font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(<font class="keyword">new</font> <a class="code" href="classRTTIPtrType.html">RTTIPtrType</a>(RTTIGetClassDescriptor((__P*)0)));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -