Loading [MathJax]/jax/output/HTML-CSS/config.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
core
meta
src
TEnumConstant.cxx
Go to the documentation of this file.
1
// @(#)root/meta:$Id$
2
// Author: Bianca-Cristina Cristescu 10/07/13
3
4
/*************************************************************************
5
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
/** \class TEnumConstant
13
The TEnumConstant class implements the constants of the enum type.
14
*/
15
16
#include "
TEnumConstant.h
"
17
#include "
TEnum.h
"
18
19
20
ClassImp
(
TEnumConstant
)
21
22
////////////////////////////////////////////////////////////////////////////////
23
/// Constructor of the TEnumConstant.
24
/// Takes as parameters DataMemberInfo, value, and enum type.
25
26
TEnumConstant
::
TEnumConstant
(DataMemberInfo_t *info, const
char
*
name
,
Long64_t
value,
TEnum
*
type
)
27
:
TGlobal
(info), fEnum(
type
),
fValue
(value) {
28
//Set name of constant
29
this->
SetName
(name);
30
31
// Add the constant to the enum type.
32
type->AddConstant(
this
);
33
}
34
35
////////////////////////////////////////////////////////////////////////////////
36
///Destructor
37
38
TEnumConstant::~TEnumConstant
()
39
{
40
}
TEnumConstant.h
TEnum
The TEnum class implements the enum type.
Definition:
TEnum.h:42
Long64_t
long long Long64_t
Definition:
RtypesCore.h:69
TEnum.h
fValue
PyObject * fValue
Definition:
MethodProxy.cxx:120
TEnumConstant
The TEnumConstant class implements the constants of the enum type.
Definition:
TEnumConstant.h:33
TGlobal
Global variables class (global variables are obtained from CINT).
Definition:
TGlobal.h:29
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:279
type
int type
Definition:
TGX11.cxx:120
TEnumConstant::~TEnumConstant
virtual ~TEnumConstant()
Destructor.
Definition:
TEnumConstant.cxx:38
SetName
gr SetName("gr")
name
char name[80]
Definition:
TGX11.cxx:109