CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MemberWithDict.cc
Go to the documentation of this file.
1 
5 
6 namespace edm {
7 
9  dataMember_() {
10  }
11 
12  MemberWithDict::MemberWithDict(TDataMember* dataMember) :
13  dataMember_(dataMember) {
14  }
15 
18  return dataMember_->GetName();
19  }
20 
23  return (ObjectWithDict(typeOf(), reinterpret_cast<void*>(dataMember_->GetOffset())));
24  }
25 
28  return (ObjectWithDict(typeOf(), static_cast<char*>(obj.address()) + dataMember_->GetOffset()));
29  }
30 
33  return TypeWithDict::byName(dataMember_->GetTypeName(), dataMember_->Property());
34  }
35 
38  return TypeWithDict(dataMember_->GetClass(), dataMember_->Property());
39  }
40 
41  bool
43  return (dataMember_->Property() & kIsConstant);
44  }
45 
46  bool
48  return (dataMember_->Property() & kIsPublic);
49  }
50 
51  bool
53  return (dataMember_->Property() & kIsStatic);
54  }
55 
56  bool
58  return !dataMember_->IsPersistent();
59  }
60 
61  size_t
63  return (dataMember_->GetOffset());
64  }
65 
66  MemberWithDict::operator bool() const {
67  return (dataMember_ != nullptr);
68  }
69 
70 }
static TypeWithDict byName(std::string const &className)
void * address() const
bool isStatic() const
size_t offset() const
bool isPublic() const
TypeWithDict declaringType() const
TDataMember * dataMember_
std::string name() const
ObjectWithDict get() const
TypeWithDict typeOf() const
bool isConst() const
bool isTransient() const