-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRtypesCore.nim
More file actions
243 lines (167 loc) · 5.34 KB
/
RtypesCore.nim
File metadata and controls
243 lines (167 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
## @(#)root/base:$Id$
## ************************************************************************
## Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
## All rights reserved. *
## *
## For the licensing terms see $ROOTSYS/LICENSE. *
## For the list of contributors see $ROOTSYS/README/CREDITS. *
## ***********************************************************************
## ////////////////////////////////////////////////////////////////////////
## //
## RtypesCore //
## //
## Basic types used by ROOT and required by TInterpreter. //
## //
## ////////////////////////////////////////////////////////////////////////
# import
# RConfig
## ---- Tag used by rootcling to determine constructor used for I/O.
discard "forward decl of TRootIOCtor"
type
Char_t* = char
## Signed Character 1 byte (char)
type
UChar_t* = cuchar
## Unsigned Character 1 byte (unsigned char)
type
Short_t* = cshort
## Signed Short integer 2 bytes (short)
type
UShort_t* = cushort
## Unsigned Short integer 2 bytes (unsigned short)
when defined(RINT16):
type
Int_t* = clong
## Signed integer 4 bytes
type
UInt_t* = culong
## Unsigned integer 4 bytes
else:
type
Int_t* = cint
## Signed integer 4 bytes (int)
type
UInt_t* = cuint
## Unsigned integer 4 bytes (unsigned int)
when defined(RB64): ## Note: Long_t and ULong_t are currently not portable types
type
Seek_t* = cint
## File pointer (int)
type
Long_t* = clong
## Signed long integer 8 bytes (long)
type
ULong_t* = culong
## Unsigned long integer 8 bytes (unsigned long)
else:
type
Seek_t* = cint
## File pointer (int)
type
Long_t* = clong
## Signed long integer 4 bytes (long)
type
ULong_t* = culong
## Unsigned long integer 4 bytes (unsigned long)
type
Float_t* = cfloat
## Float 4 bytes (float)
type
Float16_t* = cfloat
## Float 4 bytes written with a truncated mantissa
type
Double_t* = cdouble
## Double 8 bytes
type
Double32_t* = cdouble
## Double 8 bytes in memory, written as a 4 bytes float
type
LongDouble_t* = clongdouble
## Long Double
type
Text_t* = char
## General string (char)
type
Bool_t* = bool
## Boolean (0=false, 1=true) (bool)
type
Byte_t* = cuchar
## Byte (8 bits) (unsigned char)
type
Version_t* = cshort
## Class version identifier (short)
type
Option_t* = char
## Option string (const char)
type
Ssiz_t* = cint
## String size (int)
type
Real_t* = cfloat
## TVector and TMatrix element type (float)
when defined(RWIN32) and not defined(CINT):
## typedef __int64 Long64_t; //Portable signed long integer 8 bytes
## typedef unsigned __int64 ULong64_t; //Portable unsigned long integer 8 bytes
type
Long64_t* = int64
ULong64_t* = uint64
else:
type
Long64_t* = clonglong
## Portable signed long integer 8 bytes
type
ULong64_t* = culonglong
## Portable unsigned long integer 8 bytes
type
Axis_t* = cdouble
## Axis values type (double)
type
Stat_t* = cdouble
## Statistics type (double)
type
Font_t* = cshort
## Font number (short)
type
Style_t* = cshort
## Style number (short)
type
Marker_t* = cshort
## Marker number (short)
type
Width_t* = cshort
## Line width (short)
type
Color_t* = cshort
## Color number (short)
type
SCoord_t* = cshort
## Screen coordinates (short)
type
Coord_t* = cdouble
## Pad world coordinates (double)
type
Angle_t* = cfloat
## Graphics angle (float)
type
Size_t* = cfloat
## Attribute size (float)
## ---- constants ---------------------------------------------------------------
var kTRUE* {.importcpp: "kTRUE", header: "RtypesCore.h".}: Bool_t
var kFALSE* {.importcpp: "kFALSE", header: "RtypesCore.h".}: Bool_t
var kMaxUChar* {.importcpp: "kMaxUChar", header: "RtypesCore.h".}: Int_t
var kMaxChar* {.importcpp: "kMaxChar", header: "RtypesCore.h".}: Int_t
var kMinChar* {.importcpp: "kMinChar", header: "RtypesCore.h".}: Int_t
var kMaxUShort* {.importcpp: "kMaxUShort", header: "RtypesCore.h".}: Int_t
var kMaxShort* {.importcpp: "kMaxShort", header: "RtypesCore.h".}: Int_t
var kMinShort* {.importcpp: "kMinShort", header: "RtypesCore.h".}: Int_t
var kMaxUInt* {.importcpp: "kMaxUInt", header: "RtypesCore.h".}: UInt_t
var kMaxInt* {.importcpp: "kMaxInt", header: "RtypesCore.h".}: Int_t
var kMinInt* {.importcpp: "kMinInt", header: "RtypesCore.h".}: Int_t
var kMaxULong* {.importcpp: "kMaxULong", header: "RtypesCore.h".}: ULong_t
var kMaxLong* {.importcpp: "kMaxLong", header: "RtypesCore.h".}: Long_t
var kMinLong* {.importcpp: "kMinLong", header: "RtypesCore.h".}: Long_t
var kMaxULong64* {.importcpp: "kMaxULong64", header: "RtypesCore.h".}: ULong64_t
var kMaxLong64* {.importcpp: "kMaxLong64", header: "RtypesCore.h".}: Long64_t
var kMinLong64* {.importcpp: "kMinLong64", header: "RtypesCore.h".}: Long64_t
var kBitsPerByte* {.importcpp: "kBitsPerByte", header: "RtypesCore.h".}: csize
var kNPOS* {.importcpp: "kNPOS", header: "RtypesCore.h".}: Ssiz_t