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