Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Utilities
src
MemberWithDict.cc
Go to the documentation of this file.
1
2
#include "
FWCore/Utilities/interface/MemberWithDict.h
"
3
#include "
FWCore/Utilities/interface/ObjectWithDict.h
"
4
#include "
FWCore/Utilities/interface/TypeWithDict.h
"
5
6
namespace
edm {
7
8
MemberWithDict::MemberWithDict
() :
9
dataMember_() {
10
}
11
12
MemberWithDict::MemberWithDict
(TDataMember* dataMember) :
13
dataMember_(dataMember) {
14
}
15
16
std::string
17
MemberWithDict::name
()
const
{
18
return
dataMember_
->GetName();
19
}
20
21
ObjectWithDict
22
MemberWithDict::get
()
const
{
23
return
(
ObjectWithDict
(
typeOf
(), reinterpret_cast<void*>(
dataMember_
->GetOffset())));
24
}
25
26
ObjectWithDict
27
MemberWithDict::get
(
ObjectWithDict
const
&
obj
)
const
{
28
return
(
ObjectWithDict
(
typeOf
(), static_cast<char*>(obj.
address
()) +
dataMember_
->GetOffset()));
29
}
30
31
TypeWithDict
32
MemberWithDict::typeOf
()
const
{
33
return
TypeWithDict::byName
(
dataMember_
->GetTypeName(),
dataMember_
->Property());
34
}
35
36
TypeWithDict
37
MemberWithDict::declaringType
()
const
{
38
return
TypeWithDict
(
dataMember_
->GetClass(),
dataMember_
->Property());
39
}
40
41
bool
42
MemberWithDict::isConst
()
const
{
43
return
(
dataMember_
->Property() & kIsConstant);
44
}
45
46
bool
47
MemberWithDict::isPublic
()
const
{
48
return
(
dataMember_
->Property() & kIsPublic);
49
}
50
51
bool
52
MemberWithDict::isStatic
()
const
{
53
return
(
dataMember_
->Property() &
kIsStatic
);
54
}
55
56
bool
57
MemberWithDict::isTransient
()
const
{
58
return
!
dataMember_
->IsPersistent();
59
}
60
61
size_t
62
MemberWithDict::offset
()
const
{
63
return
(
dataMember_
->GetOffset());
64
}
65
66
MemberWithDict::operator
bool()
const
{
67
return
(dataMember_ !=
nullptr
);
68
}
69
70
}
edm::ObjectWithDict
Definition:
ObjectWithDict.h:16
reco::parser::kIsStatic
Definition:
ErrorCodes.h:34
edm::TypeWithDict::byName
static TypeWithDict byName(std::string const &className)
Definition:
TypeWithDict.cc:159
edm::ObjectWithDict::address
void * address() const
Definition:
ObjectWithDict.cc:46
cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
edm::MemberWithDict::isStatic
bool isStatic() const
Definition:
MemberWithDict.cc:52
edm::MemberWithDict::offset
size_t offset() const
Definition:
MemberWithDict.cc:62
edm::MemberWithDict::MemberWithDict
MemberWithDict()
Definition:
MemberWithDict.cc:8
getGTfromDQMFile.obj
tuple obj
Definition:
getGTfromDQMFile.py:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::MemberWithDict::isPublic
bool isPublic() const
Definition:
MemberWithDict.cc:47
edm::MemberWithDict::declaringType
TypeWithDict declaringType() const
Definition:
MemberWithDict.cc:37
TypeWithDict.h
ObjectWithDict.h
edm::MemberWithDict::dataMember_
TDataMember * dataMember_
Definition:
MemberWithDict.h:51
edm::MemberWithDict::name
std::string name() const
Definition:
MemberWithDict.cc:17
edm::MemberWithDict::get
ObjectWithDict get() const
Definition:
MemberWithDict.cc:22
edm::MemberWithDict::typeOf
TypeWithDict typeOf() const
Definition:
MemberWithDict.cc:32
edm::MemberWithDict::isConst
bool isConst() const
Definition:
MemberWithDict.cc:42
MemberWithDict.h
edm::MemberWithDict::isTransient
bool isTransient() const
Definition:
MemberWithDict.cc:57
edm::TypeWithDict
Definition:
TypeWithDict.h:45
Generated for CMSSW Reference Manual by
1.8.5