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 20 of file MemberWithDict.h.

Constructor & Destructor Documentation

edm::MemberWithDict::MemberWithDict ( )

Definition at line 10 of file MemberWithDict.cc.

10  : dataMember_(nullptr) {
11  }
TDataMember * dataMember_
edm::MemberWithDict::MemberWithDict ( TDataMember *  dataMember)
explicit

Definition at line 13 of file MemberWithDict.cc.

13  : dataMember_(dataMember) {
14  }
TDataMember * dataMember_

Member Function Documentation

TypeWithDict edm::MemberWithDict::declaringType ( ) const

Definition at line 41 of file MemberWithDict.cc.

References dataMember_.

41  {
42  return TypeWithDict(dataMember_->GetClass());
43  }
TDataMember * dataMember_
ObjectWithDict edm::MemberWithDict::get ( ) const
ObjectWithDict edm::MemberWithDict::get ( ObjectWithDict const &  obj) const
bool edm::MemberWithDict::isArray ( ) const

Definition at line 46 of file MemberWithDict.cc.

References dataMember_.

Referenced by typeOf().

46  {
47  return dataMember_->Property() & kIsArray;
48  }
TDataMember * dataMember_
bool edm::MemberWithDict::isConst ( ) const

Definition at line 51 of file MemberWithDict.cc.

References dataMember_.

Referenced by FWTableViewManager::tableFormats().

51  {
52  return dataMember_->Property() & kIsConstant;
53  }
TDataMember * dataMember_
bool edm::MemberWithDict::isPublic ( ) const

Definition at line 56 of file MemberWithDict.cc.

References dataMember_.

Referenced by reco::findDataMember(), and FWTableViewManager::tableFormats().

56  {
57  return dataMember_->Property() & kIsPublic;
58  }
TDataMember * dataMember_
bool edm::MemberWithDict::isStatic ( ) const

Definition at line 61 of file MemberWithDict.cc.

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

61  {
62  return dataMember_->Property() & kIsStatic;
63  }
TDataMember * dataMember_
bool edm::MemberWithDict::isTransient ( ) const

Definition at line 66 of file MemberWithDict.cc.

References dataMember_.

66  {
67  return !dataMember_->IsPersistent();
68  }
TDataMember * dataMember_
std::string edm::MemberWithDict::name ( void  ) const
size_t edm::MemberWithDict::offset ( ) const

Definition at line 71 of file MemberWithDict.cc.

References dataMember_.

71  {
72  return dataMember_->GetOffset();
73  }
TDataMember * dataMember_
edm::MemberWithDict::operator bool ( ) const
explicit

Definition at line 16 of file MemberWithDict.cc.

References dataMember_, and AlCaHLTBitMon_QueryRunRegistry::string.

16  {
17  return dataMember_ != nullptr;
18  }
TDataMember * dataMember_
TypeWithDict edm::MemberWithDict::typeOf ( ) const

Definition at line 26 of file MemberWithDict.cc.

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

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

26  {
27  if(isArray()) {
28  std::ostringstream name;
29  name << dataMember_->GetTrueTypeName();
30  for(int i = 0; i < dataMember_->GetArrayDim(); ++i) {
31  name << '[';
32  name << dataMember_->GetMaxIndex(i);
33  name << ']';
34  }
35  return TypeWithDict::byName(name.str());
36  }
37  return TypeWithDict::byName(dataMember_->GetTrueTypeName());
38  }
bool isArray() const
static TypeWithDict byName(std::string const &name)
Definition: TypeWithDict.cc:60
TDataMember * dataMember_
std::string name() const

Member Data Documentation

TDataMember* edm::MemberWithDict::dataMember_
private