#include <ObjectWithDict.h>
Public Member Functions | |
void * | address () const |
ObjectWithDict | castObject (TypeWithDict const &) const |
void | destruct (bool dealloc) const |
TypeWithDict | dynamicType () const |
ObjectWithDict | get (std::string const &memberName) const |
template<typename T > | |
T | objectCast () |
ObjectWithDict () | |
ObjectWithDict (TypeWithDict const &, void *address) | |
ObjectWithDict (std::type_info const &, void *address) | |
operator bool () const | |
TypeWithDict | typeOf () const |
Static Public Member Functions | |
static ObjectWithDict | byType (TypeWithDict const &) |
Private Attributes | |
void * | address_ |
TypeWithDict | type_ |
Definition at line 17 of file ObjectWithDict.h.
edm::ObjectWithDict::ObjectWithDict | ( | ) |
|
explicit |
Definition at line 20 of file ObjectWithDict.cc.
|
explicit |
Definition at line 22 of file ObjectWithDict.cc.
void * edm::ObjectWithDict::address | ( | ) | const |
Definition at line 27 of file ObjectWithDict.cc.
References address_.
Referenced by castObject(), reco::parser::ExpressionVar::delStorage(), edm::MemberWithDict::get(), fwlite::DataGetterHelper::getBranchDataFor(), fwlite::DataGetterHelper::getByLabel(), edm::root::FWLiteDelayedReader::getTheProduct(), edm::FunctionWithDict::invoke(), reco::parser::MethodInvoker::invoke(), FWParameterSetterBase::makeSetterFor(), reco::parser::ExpressionVar::objToDouble(), FWItemRandomAccessorBase::setData(), FWItemSingleAccessor::setData(), FWItemTVirtualCollectionProxyAccessor::setData(), and fwlite::DataGetterHelper::wrapperBasePtr().
|
static |
Definition at line 13 of file ObjectWithDict.cc.
References edm::TypeWithDict::construct(), and getGTfromDQMFile::obj.
Referenced by fwlite::DataGetterHelper::getBranchDataFor(), and reco::parser::ExpressionVar::makeStorage().
ObjectWithDict edm::ObjectWithDict::castObject | ( | TypeWithDict const & | to | ) | const |
Definition at line 51 of file ObjectWithDict.cc.
References address(), address_, edm::TypeWithDict::getBaseClassOffset(), edm::TypeWithDict::hasBase(), ObjectWithDict(), hltrates_dqm_sourceclient-live_cfg::offset, edm::TypeWithDict::typeInfo(), and typeOf().
Referenced by edm::root::FWLiteDelayedReader::getTheProduct().
void edm::ObjectWithDict::destruct | ( | bool | dealloc | ) | const |
Definition at line 92 of file ObjectWithDict.cc.
References address_, haddnano::cl, edm::TypeWithDict::getClass(), and type_.
Referenced by fwlite::internal::Data::~Data().
TypeWithDict edm::ObjectWithDict::dynamicType | ( | ) | const |
Definition at line 38 of file ObjectWithDict.cc.
References address_, edm::TypeWithDict::byTypeInfo(), edm::TypeWithDict::isVirtual(), and type_.
Referenced by fwlite::RecordWriter::update().
ObjectWithDict edm::ObjectWithDict::get | ( | std::string const & | memberName | ) | const |
Definition at line 47 of file ObjectWithDict.cc.
References edm::TypeWithDict::dataMemberByName(), edm::MemberWithDict::get(), and type_.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), edm::convert_handle(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
|
inline |
|
explicit |
Definition at line 25 of file ObjectWithDict.cc.
TypeWithDict edm::ObjectWithDict::typeOf | ( | ) | const |
Definition at line 29 of file ObjectWithDict.cc.
References type_.
Referenced by castObject(), reco::parser::ExpressionVar::delStorage(), reco::parser::MethodInvoker::invoke(), reco::parser::SingleInvoker::throwFailedConversion(), and fwlite::DataGetterHelper::wrapperBasePtr().
|
private |
Definition at line 20 of file ObjectWithDict.h.
Referenced by address(), castObject(), destruct(), dynamicType(), and objectCast().
|
private |
Definition at line 19 of file ObjectWithDict.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), destruct(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), dynamicType(), get(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), and typeOf().