NCBI C++ ToolKit
rtti.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #include <ncbi_pch.hpp>
2 #include <corelib/ncbistd.hpp>
3 #include <typeinfo>
4 #include <string>
5 
6 using namespace std;
7 
8 int initRTTI(void);
9 
10 int initRTTI(void)
11 {
12  int r = 0;
13  r += typeid(void).name()[0];
14  r += typeid(void*).name()[0];
15  r += typeid(const void*).name()[0];
16  r += typeid(bool).name()[0];
17  r += typeid(int).name()[0];
18  r += typeid(unsigned).name()[0];
19  r += typeid(int*).name()[0];
20  r += typeid(const int*).name()[0];
21  r += typeid(short).name()[0];
22  r += typeid(unsigned short).name()[0];
23  r += typeid(long).name()[0];
24  r += typeid(unsigned long).name()[0];
25  r += typeid(char).name()[0];
26  r += typeid(unsigned char).name()[0];
27 #if SIZEOF_LONG_LONG != 0
28  r += typeid(signed long long).name()[0];
29  r += typeid(unsigned long long).name()[0];
30 #endif
31  r += typeid(char*).name()[0];
32  r += typeid(unsigned char*).name()[0];
33  r += typeid(const char*).name()[0];
34  r += typeid(const unsigned char*).name()[0];
35  r += typeid(float).name()[0];
36  r += typeid(double).name()[0];
37  return r;
38 }
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define bool
Definition: bool.h:34
unsigned int
A callback function used to compare two keys in a database.
Definition: types.hpp:1210
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
int initRTTI(void)
Definition: rtti.cpp:10
Modified on Thu May 02 14:34:39 2024 by modify_doxy.py rev. 669887