#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 25 of file ObjectWithDict.cc.
void * edm::ObjectWithDict::address | ( | ) | const |
Definition at line 35 of file ObjectWithDict.cc.
References address_.
Referenced by castObject(), ora::ClassUtils::constructObject(), reco::parser::ExpressionVar::delStorage(), ora::QVQueryMaker::executeAndLoad(), 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(), ora::STLContainerReader::read(), FWItemRandomAccessorBase::setData(), FWItemSingleAccessor::setData(), FWItemTVirtualCollectionProxyAccessor::setData(), and fwlite::DataGetterHelper::wrapperBasePtr().
|
static |
Definition at line 12 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 68 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 103 of file ObjectWithDict.cc.
References address_, GetRecoTauVFromDQM_MC_cff::cl, edm::TypeWithDict::getClass(), and type_.
Referenced by fwlite::internal::Data::~Data().
TypeWithDict edm::ObjectWithDict::dynamicType | ( | ) | const |
Definition at line 53 of file ObjectWithDict.cc.
References address_, edm::TypeWithDict::isVirtual(), and type_.
Referenced by fwlite::RecordWriter::update().
ObjectWithDict edm::ObjectWithDict::get | ( | std::string const & | memberName | ) | const |
Definition at line 63 of file ObjectWithDict.cc.
References edm::TypeWithDict::dataMemberByName(), edm::MemberWithDict::get(), and type_.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), edm::convert_handle(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
inline |
|
explicit |
Definition at line 30 of file ObjectWithDict.cc.
TypeWithDict edm::ObjectWithDict::typeOf | ( | ) | const |
Definition at line 40 of file ObjectWithDict.cc.
References type_.
Referenced by castObject(), reco::parser::ExpressionVar::delStorage(), reco::parser::MethodInvoker::invoke(), reco::parser::SingleInvoker::throwFailedConversion(), fwlite::DataGetterHelper::wrapperBasePtr(), and ora::UniqueRefWriter::write().
|
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::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), destruct(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), dynamicType(), get(), Modules.Service::insertInto(), RandomRunSource.RandomRunSource::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), and typeOf().