ROOT  6.06/09
Reference Guide
complexLinkdef.h
Go to the documentation of this file.
1 #include <complex>
2 #include "root_std_complex.h"
3 #ifndef __hpux
4 using namespace std;
5 #endif
6 
7 #pragma extra_include "root_std_complex.h";
8 
9 #pragma create TClass complex<int>+;
10 #pragma create TClass complex<long>+;
11 #pragma create TClass complex<float>+;
12 #pragma create TClass complex<double>+;
13 
14 #pragma create TClass _root_std_complex<int>+;
15 #pragma create TClass _root_std_complex<long>+;
16 #pragma create TClass _root_std_complex<float>+;
17 #pragma create TClass _root_std_complex<double>+;
18 
19 #ifdef G__NATIVELONGLONG
20 // #pragma create TClass complex<long long>+;
21 #pragma create TClass _root_std_complex<long long>+;
22 // #pragma create TClass complex<long double>+;
23 #endif
24 
25 // IO Rules
26 // From OSx to ROOT
27 // There the datamembers are called __re_ and __im_
28 // #pragma read sourceClass="complex<float>" \
29 // targetClass="complex<float>" \
30 // checksum=[3671150135] \
31 // source="float __re_;" \
32 // target="" \
33 // code="{ newObj->real(onfile.__re_);}"
34 //
35 // #pragma read sourceClass="complex<float>" \
36 // targetClass="complex<float>" \
37 // checksum=[3671150135] \
38 // source="float __im_;" \
39 // target="" \
40 // code="{ newObj->imag(onfile.__im_);}"
STL namespace.