#include <RefToBaseVector.h>
Definition at line 24 of file RefToBaseVector.h.
typedef holder_type::const_iterator edm::RefToBaseVector< T >::const_iterator |
Definition at line 30 of file RefToBaseVector.h.
typedef reftobase::BaseVectorHolder<T> edm::RefToBaseVector< T >::holder_type |
Definition at line 28 of file RefToBaseVector.h.
typedef T edm::RefToBaseVector< T >::member_type |
Definition at line 27 of file RefToBaseVector.h.
typedef holder_type::size_type edm::RefToBaseVector< T >::size_type |
Definition at line 29 of file RefToBaseVector.h.
typedef RefToBase<T> edm::RefToBaseVector< T >::value_type |
Definition at line 26 of file RefToBaseVector.h.
RefToBaseVector::RefToBaseVector | ( | ) | [inline] |
Definition at line 111 of file RefToBaseVector.h.
: holder_(0) { }
edm::RefToBaseVector< T >::RefToBaseVector | ( | RefToBaseVector< T > const & | ) |
RefToBaseVector::RefToBaseVector | ( | REFV const & | iRef | ) | [inline, explicit] |
Definition at line 118 of file RefToBaseVector.h.
: holder_(new reftobase::VectorHolder<T,REFV>(iRef)) { }
RefToBaseVector::RefToBaseVector | ( | Handle< C > const & | h | ) | [explicit] |
Definition at line 288 of file RefToBaseVector.h.
: holder_(new reftobase::VectorHolder<T, RefVector<C, typename refhelper::ValueTrait<C>::value, typename refhelper::FindTrait<C, T>::value> >(h.id())) { }
RefToBaseVector::RefToBaseVector | ( | Handle< View< T1 > > const & | h | ) | [explicit] |
Definition at line 295 of file RefToBaseVector.h.
: holder_(h->refVector().holder_->cloneEmpty()) { }
RefToBaseVector::RefToBaseVector | ( | boost::shared_ptr< reftobase::RefVectorHolderBase > | p | ) | [inline] |
Definition at line 130 of file RefToBaseVector.h.
RefToBaseVector::~RefToBaseVector | ( | ) | [inline] |
Definition at line 152 of file RefToBaseVector.h.
{ delete holder_; }
edm::RefToBaseVector< T >::RefToBaseVector | ( | const RefToBaseVector< T > & | iOther | ) | [inline] |
Definition at line 124 of file RefToBaseVector.h.
: holder_(iOther.holder_ ? iOther.holder_->clone() : 0) { }
RefToBaseVector< T >::value_type RefToBaseVector::at | ( | size_type | idx | ) | const [inline] |
Definition at line 160 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::at(), edm::errors::InvalidReference, and edm::Exception::throwThis().
Referenced by reco::tautools::CastedRefProducer< DerivedCollection, BaseType >::produce().
{ if ( holder_ == 0 ) Exception::throwThis( errors::InvalidReference, "Trying to dereference null RefToBaseVector<T> in method: at(", idx, ")\n"); return holder_->at( idx ); }
RefToBaseVector< T >::const_iterator RefToBaseVector::begin | ( | void | ) | const [inline] |
Definition at line 222 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::begin().
Referenced by MuonAssociatorByHits::associateMuons(), TrackAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByChi2::associateSimToReco(), TrackAssociatorByHits::associateSimToReco(), MatchJet::matchCollections(), edm::operator==(), TagProbeMassProducer::produce(), and CandViewRefMerger::produce().
{ return holder_ ? holder_->begin() : const_iterator(); }
void RefToBaseVector::clear | ( | void | ) | [inline] |
Definition at line 197 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::clear().
Referenced by MatchJet::matchCollections().
bool RefToBaseVector::empty | ( | ) | const [inline] |
Definition at line 181 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::empty().
RefToBaseVector< T >::const_iterator RefToBaseVector::end | ( | void | ) | const [inline] |
Definition at line 230 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::end().
Referenced by MuonAssociatorByHits::associateMuons(), TrackAssociatorByHits::associateRecoToSim(), MuonAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), MuonAssociatorByHits::associateSimToReco(), TrackAssociatorByChi2::associateSimToReco(), TrackAssociatorByHits::associateSimToReco(), MatchJet::matchCollections(), edm::operator==(), TagProbeMassProducer::produce(), and CandViewRefMerger::produce().
{ return holder_ ? holder_->end() : const_iterator(); }
void RefToBaseVector::fillView | ( | std::vector< void const * > & | pointers | ) | const |
Definition at line 237 of file RefToBaseVector.h.
References begin, end, i, edm::RefToBase< T >::isNull(), and findQualityFiles::size.
Referenced by edm::fillView().
{ pointers.reserve(this->size()); for (const_iterator i=begin(), e=end(); i!=e; ++i) { RefToBase<T> ref = * i; member_type const * address = ref.isNull() ? 0 : & * ref; pointers.push_back(address); } }
ProductID RefToBaseVector::id | ( | void | ) | const [inline] |
Definition at line 206 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::id().
Referenced by MatchJet::operator()().
bool edm::RefToBaseVector< T >::isAvailable | ( | ) | const [inline] |
Checks if collection is in memory or available in the Event. No type checking is done.
Definition at line 69 of file RefToBaseVector.h.
{ return holder_->isAvailable(); }
bool edm::RefToBaseVector< T >::isInvalid | ( | ) | const [inline] |
Definition at line 52 of file RefToBaseVector.h.
Referenced by edm::operator==().
{ return holder_ == 0; }
bool edm::RefToBaseVector< T >::isValid | ( | void | ) | const [inline] |
Definition at line 51 of file RefToBaseVector.h.
{ return holder_ != 0; }
RefToBaseVector< T > & RefToBaseVector::operator= | ( | RefToBaseVector< T > const & | iRHS | ) | [inline] |
Definition at line 137 of file RefToBaseVector.h.
References edm::swap(), and cond::rpcobtemp::temp.
{ RefToBaseVector temp(iRHS); this->swap(temp); return *this; }
RefToBaseVector< T >::value_type RefToBaseVector::operator[] | ( | size_type | idx | ) | const [inline] |
const void * RefToBaseVector::product | ( | ) | const |
Definition at line 274 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::product().
EDProductGetter const * RefToBaseVector::productGetter | ( | ) | const [inline] |
Definition at line 214 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::productGetter().
{ return holder_ ? holder_->productGetter() : 0; }
Definition at line 260 of file RefToBaseVector.h.
References edm::RefToBase< T >::holder_, edm::reftobase::BaseHolder< T >::makeVectorHolder(), L1TEmulatorMonitor_cff::p, and edm::reftobase::BaseVectorHolder< T >::push_back().
Referenced by PhotonValidator::analyze(), TkConvValidator::analyze(), MuonAssociatorByHits::associateMuons(), TrackAssociatorBase::associateRecoToSim(), TrackAssociatorBase::associateSimToReco(), CandViewRefRandomSelector::filter(), BTagPerformanceAnalyzerMC::getJetWithFlavour(), MatchJet::matchCollections(), helper::SelectionRefViewAdder< T >::operator()(), and pat::helper::TriggerMatchHelper::triggerMatchCandidates().
RefToBaseVector< T >::size_type RefToBaseVector::size | ( | void | ) | const [inline] |
Definition at line 189 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::size().
Referenced by TrackAssociatorByPosition::associateRecoToSim(), TrackAssociatorByPosition::associateSimToReco(), CandViewRefRandomSelector::filter(), MatchJet::matchCollections(), MatchJet::operator()(), edm::operator==(), and reco::tautools::CastedRefProducer< DerivedCollection, BaseType >::produce().
void RefToBaseVector::swap | ( | RefToBaseVector< T > & | other | ) | [inline] |
Definition at line 146 of file RefToBaseVector.h.
References edm::RefToBaseVector< T >::holder_, and edm::swap().
Referenced by edm::swap().
std::auto_ptr< reftobase::RefVectorHolderBase > RefToBaseVector::vectorHolder | ( | ) | const |
Definition at line 269 of file RefToBaseVector.h.
References edm::reftobase::BaseVectorHolder< T >::vectorHolder().
Referenced by edm::helpers::ViewFiller< RefToBaseVector< T > >::fill().
{ return holder_ ? holder_->vectorHolder() : std::auto_ptr<reftobase::RefVectorHolderBase>(); }
holder_type* edm::RefToBaseVector< T >::holder_ [private] |
Definition at line 75 of file RefToBaseVector.h.
Referenced by edm::RefToBaseVector< reco::Jet >::isAvailable(), edm::RefToBaseVector< reco::Jet >::isInvalid(), edm::RefToBaseVector< reco::Jet >::isValid(), and edm::RefToBaseVector< T >::swap().