CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
ObjectWithDict edm::MemberWithDict::get ( void  ) 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
bool edm::MemberWithDict::isTransient ( ) const
std::string edm::MemberWithDict::name ( void  ) const
size_t edm::MemberWithDict::offset ( ) const
edm::MemberWithDict::operator bool ( ) const
explicit

Definition at line 16 of file MemberWithDict.cc.

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_, i, isArray(), and name().

Referenced by ora::RelationalMapping::_sizeInColumns(), ora::ObjectStreamerBase::buildBaseDataMembers(), ora::ObjectStreamerBase::buildDataMembers(), get(), reco::parser::MethodInvoker::invoke(), ora::ObjectMapping::process(), ora::processBaseClasses(), reco::parser::MethodSetter::push(), ora::PVectorHandler::PVectorHandler(), reco::parser::MethodInvoker::returnTypeName(), ora::SpecialSTLContainerHandler::SpecialSTLContainerHandler(), 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  }
int i
Definition: DBlmapReader.cc:9
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