ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
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
21
////////////////////////////////////////////////////////////////////////////////
22
/// Constructor of the TEnumConstant.
23
/// Takes as parameters DataMemberInfo, value, and enum type.
24
25
TEnumConstant::TEnumConstant
(DataMemberInfo_t *info,
const
char
*
name
,
Long64_t
value,
TEnum
* type)
26
:
TGlobal
(info),
fEnum
(type),
fValue
(value) {
27
//Set name of constant
28
this->
SetName
(name);
29
30
// Add the constant to the enum type.
31
type->AddConstant(
this
);
32
}
33
34
////////////////////////////////////////////////////////////////////////////////
35
///Destructor
36
37
TEnumConstant::~TEnumConstant
()
38
{
39
}
Long64_t
long long Long64_t
Portable signed long integer 8 bytes.
Definition
RtypesCore.h:83
TEnumConstant.h
TEnum.h
name
char name[80]
Definition
TGX11.cxx:148
TEnumConstant::fEnum
const TEnum * fEnum
Definition
TEnumConstant.h:31
TEnumConstant::TEnumConstant
TEnumConstant()
Definition
TEnumConstant.h:35
TEnumConstant::fValue
Long64_t fValue
Definition
TEnumConstant.h:32
TEnumConstant::~TEnumConstant
virtual ~TEnumConstant()
Destructor.
Definition
TEnumConstant.cxx:37
TEnum
The TEnum class implements the enum type.
Definition
TEnum.h:33
TGlobal::TGlobal
TGlobal(DataMemberInfo_t *info=nullptr)
Default TGlobal ctor.
Definition
TGlobal.cxx:29
TNamed::SetName
virtual void SetName(const char *name)
Set the name of the TNamed.
Definition
TNamed.cxx:149
core
meta
src
TEnumConstant.cxx
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1