CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::MemberWithDict Class Reference

#include <MemberWithDict.h>

Public Member Functions

TypeWithDict declaringType () const
 
ObjectWithDict get () const
 
ObjectWithDict get (ObjectWithDict const &) const
 
bool isArray () const
 
bool isConst () const
 
bool isPublic () const
 
bool isStatic () const
 
bool isTransient () const
 
 MemberWithDict ()
 
 MemberWithDict (TDataMember *)
 
std::string name () const
 
size_t offset () const
 
 operator bool () const
 
TypeWithDict typeOf () const
 

Private Attributes

TDataMember * dataMember_
 

Detailed Description

Definition at line 19 of file MemberWithDict.h.

Constructor & Destructor Documentation

◆ MemberWithDict() [1/2]

edm::MemberWithDict::MemberWithDict ( )

Definition at line 10 of file MemberWithDict.cc.

10 : dataMember_(nullptr) {}

◆ MemberWithDict() [2/2]

edm::MemberWithDict::MemberWithDict ( TDataMember *  dataMember)
explicit

Definition at line 12 of file MemberWithDict.cc.

12 : dataMember_(dataMember) {}

Member Function Documentation

◆ declaringType()

TypeWithDict edm::MemberWithDict::declaringType ( ) const

Definition at line 32 of file MemberWithDict.cc.

32 { return TypeWithDict(dataMember_->GetClass()); }

References dataMember_.

◆ get() [1/2]

ObjectWithDict edm::MemberWithDict::get ( ) const

◆ get() [2/2]

ObjectWithDict edm::MemberWithDict::get ( ObjectWithDict const &  obj) const

◆ isArray()

bool edm::MemberWithDict::isArray ( ) const

Definition at line 34 of file MemberWithDict.cc.

34 { return dataMember_->Property() & kIsArray; }

References dataMember_.

Referenced by typeOf().

◆ isConst()

bool edm::MemberWithDict::isConst ( ) const

Definition at line 36 of file MemberWithDict.cc.

36 { return dataMember_->Property() & kIsConstant; }

References dataMember_.

◆ isPublic()

bool edm::MemberWithDict::isPublic ( ) const

Definition at line 38 of file MemberWithDict.cc.

38 { return dataMember_->Property() & kIsPublic; }

References dataMember_.

◆ isStatic()

bool edm::MemberWithDict::isStatic ( ) const

Definition at line 40 of file MemberWithDict.cc.

40 { return dataMember_->Property() & kIsStatic; }

References dataMember_, and reco::parser::kIsStatic.

◆ isTransient()

bool edm::MemberWithDict::isTransient ( ) const

Definition at line 42 of file MemberWithDict.cc.

42 { return !dataMember_->IsPersistent(); }

References dataMember_.

◆ name()

std::string edm::MemberWithDict::name ( void  ) const

◆ offset()

size_t edm::MemberWithDict::offset ( ) const

Definition at line 44 of file MemberWithDict.cc.

44 { return dataMember_->GetOffset(); }

References dataMember_.

◆ operator bool()

edm::MemberWithDict::operator bool ( ) const
explicit

Definition at line 14 of file MemberWithDict.cc.

14 { return dataMember_ != nullptr; }

◆ typeOf()

TypeWithDict edm::MemberWithDict::typeOf ( ) const

Definition at line 18 of file MemberWithDict.cc.

18  {
19  if (isArray()) {
20  std::ostringstream name;
21  name << dataMember_->GetTrueTypeName();
22  for (int i = 0; i < dataMember_->GetArrayDim(); ++i) {
23  name << '[';
24  name << dataMember_->GetMaxIndex(i);
25  name << ']';
26  }
27  return TypeWithDict::byName(name.str());
28  }
29  return TypeWithDict::byName(dataMember_->GetTrueTypeName());
30  }

References edm::TypeWithDict::byName(), dataMember_, mps_fire::i, isArray(), and name().

Referenced by get(), reco::parser::MethodInvoker::invoke(), reco::parser::MethodSetter::push(), and reco::parser::MethodInvoker::returnTypeName().

Member Data Documentation

◆ dataMember_

TDataMember* edm::MemberWithDict::dataMember_
private
edm::TypeWithDict::byName
static TypeWithDict byName(std::string const &name)
Definition: TypeWithDict.cc:74
mps_fire.i
i
Definition: mps_fire.py:428
edm::MemberWithDict::isArray
bool isArray() const
Definition: MemberWithDict.cc:34
edm::MemberWithDict::typeOf
TypeWithDict typeOf() const
Definition: MemberWithDict.cc:18
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
edm::MemberWithDict::dataMember_
TDataMember * dataMember_
Definition: MemberWithDict.h:21
edm::MemberWithDict::name
std::string name() const
Definition: MemberWithDict.cc:16
reco::parser::kIsStatic
Definition: ErrorCodes.h:34