-
Notifications
You must be signed in to change notification settings - Fork 35
/
consts.go
110 lines (97 loc) · 3.42 KB
/
consts.go
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
// Copyright ©2017 The go-hep Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package rmeta // import "go-hep.org/x/hep/groot/rmeta"
//go:generate stringer -type Enum consts.go
//go:generate stringer -type ESTLType consts.go
// Enum is the set of ROOT streamer enums
type Enum int32
// constants for the streamers
const (
Base Enum = 0 // Base class
Char Enum = 1
Short Enum = 2
Int Enum = 3
Long Enum = 4
Float Enum = 5
Counter Enum = 6 // Counter for array size
CharStar Enum = 7 // Pointer to array of char
Double Enum = 8
Double32 Enum = 9
LegacyChar Enum = 10 // Equal to TDataType's kchar
UChar Enum = 11
UShort Enum = 12
UInt Enum = 13
ULong Enum = 14
Bits Enum = 15
Long64 Enum = 16
ULong64 Enum = 17
Bool Enum = 18
Float16 Enum = 19
OffsetL Enum = 20 // Fixed size array
OffsetP Enum = 40 // Pointer to object
Object Enum = 61 // Class derived from TObject, or for TStreamerSTL::fCtype non-pointer elements
Any Enum = 62 // Class not derived from TObject
Objectp Enum = 63 // Class* derived from TObject and with comment field //->Class, or for TStreamerSTL::fCtype: pointer elements
ObjectP Enum = 64 // Class* derived from TObject and with NO comment field //->Class
TString Enum = 65 // TString, special case
TObject Enum = 66 // TObject, special case
TNamed Enum = 67 // TNamed, special case
Anyp Enum = 68 // Class* not derived from TObject with comment field //->Class
AnyP Enum = 69 // Class* not derived from TObject with NO comment field //->Class
AnyPnoVT Enum = 70 // Class* not derived from TObject with NO comment field //->Class and Class has NO virtual table
STLp Enum = 71 // Pointer to STL container
Skip Enum = 100
SkipL Enum = 120
SkipP Enum = 140
Conv Enum = 200
ConvL Enum = 220
ConvP Enum = 240
STL Enum = 300
STLstring Enum = 365
Streamer Enum = 500
StreamLoop Enum = 501
Cache Enum = 600 /// Cache the value in memory than is not part of the object but is accessible via a SchemaRule
Artificial Enum = 1000
CacheNew Enum = 1001
CacheDelete Enum = 1002
NeedObjectForVirtualBaseClass Enum = 99997
Missing Enum = 99999
)
// aliases for Go
const (
Int8 Enum = Char
Int16 Enum = Short
Int32 Enum = Int
Int64 Enum = Long
Uint8 Enum = UChar
Uint16 Enum = UShort
Uint32 Enum = UInt
Uint64 Enum = ULong
Float32 Enum = Float
Float64 Enum = Double
)
type ESTLType int32
// constants from core/foundation/inc/ESTLType.h
const (
NotSTL ESTLType = 0
STLvector ESTLType = 1
STLlist ESTLType = 2
STLdeque ESTLType = 3
STLmap ESTLType = 4
STLmultimap ESTLType = 5
STLset ESTLType = 6
STLmultiset ESTLType = 7
STLbitset ESTLType = 8
// Here the c++11 containers start. Order counts. For example,
// tstreamerelements in written rootfiles carry a value and we cannot
// introduce shifts.
STLforwardlist ESTLType = 9
STLunorderedset ESTLType = 10
STLunorderedmultiset ESTLType = 11
STLunorderedmap ESTLType = 12
STLunorderedmultimap ESTLType = 13
STLend ESTLType = 14
STLany ESTLType = 300 /* TVirtualStreamerInfo::kSTL */
STLstdstring = ESTLType(STLstring) /* TVirtualStreamerInfo::kSTLstring */
)