![]() |
![]() |
#include <OwnVector.h>
Classes | |
class | const_iterator |
class | iterator |
struct | Ordering |
Public Types | |
typedef T const & | const_reference |
typedef T * | pointer |
typedef P | policy_type |
typedef T & | reference |
typedef base::size_type | size_type |
typedef T | value_type |
Public Member Functions | |
reference | back () |
const_reference | back () const |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
base const & | data () const |
bool | empty () const |
const_iterator | end () const |
iterator | end () |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
void | fillPtrVector (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptrs) const |
void | fillView (ProductID const &id, std::vector< void const * > &pointers, helper_vector &helpers) const |
reference | front () |
const_reference | front () const |
bool | is_back_safe () const |
OwnVector< T, P > & | operator= (OwnVector< T, P > const &) |
reference | operator[] (size_type) |
const_reference | operator[] (size_type) const |
OwnVector () | |
OwnVector (size_type) | |
OwnVector (OwnVector const &) | |
void | pop_back () |
template<typename D > | |
void | push_back (D *const &d) |
void | push_back (T const &valueToCopy) |
template<typename D > | |
void | push_back (std::auto_ptr< D > d) |
template<typename D > | |
void | push_back (D *&d) |
void | reserve (size_t) |
void | setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const |
size_type | size () const |
template<typename S > | |
void | sort (S s) |
void | sort () |
void | swap (OwnVector< T, P > &other) |
~OwnVector () | |
Private Types | |
typedef std::vector< T * > | base |
Private Member Functions | |
void | destroy () |
void | fixup () const |
void | touch () |
Static Private Member Functions | |
template<typename O > | |
static Ordering< O > | ordering (O const &comp) |
Private Attributes | |
base | data_ |
helpers::PostReadFixupTrait< T > ::type | fixup_ |
Definition at line 24 of file OwnVector.h.
typedef std::vector<T*> edm::OwnVector< T, P >::base [private] |
Definition at line 29 of file OwnVector.h.
typedef T const& edm::OwnVector< T, P >::const_reference |
Definition at line 37 of file OwnVector.h.
typedef T* edm::OwnVector< T, P >::pointer |
Definition at line 35 of file OwnVector.h.
typedef P edm::OwnVector< T, P >::policy_type |
Definition at line 38 of file OwnVector.h.
typedef T& edm::OwnVector< T, P >::reference |
Definition at line 36 of file OwnVector.h.
typedef base::size_type edm::OwnVector< T, P >::size_type |
Definition at line 33 of file OwnVector.h.
typedef T edm::OwnVector< T, P >::value_type |
Definition at line 34 of file OwnVector.h.
edm::OwnVector< T, P >::OwnVector | ( | ) | [inline] |
Definition at line 190 of file OwnVector.h.
: data_() { }
edm::OwnVector< T, P >::OwnVector | ( | size_type | n | ) | [inline] |
Definition at line 194 of file OwnVector.h.
edm::OwnVector< T, P >::OwnVector | ( | OwnVector< T, P > const & | ) |
edm::OwnVector< T, P >::~OwnVector | ( | ) | [inline] |
OwnVector< T, P >::reference edm::OwnVector< T, P >::back | ( | ) | [inline] |
Definition at line 342 of file OwnVector.h.
References edm::errors::NullPointerError, query::result, and edm::Exception::throwThis().
Referenced by SeedFromProtoTrack::init(), SeedCombiner::produce(), cms::SimpleTrackListMerger::produce(), DTCombinatorialExtendedPatternReco::reconstruct(), DTCombinatorialPatternReco::reconstruct(), and KalmanAlignmentTrackRefitter::sortRecHits().
{ T* result = data_.back(); if (result == 0) { Exception::throwThis(errors::NullPointerError, "In OwnVector::back() we have intercepted an attempt to dereference a null pointer\n" "Since OwnVector is allowed to contain null pointers, you much assure that the\n" "pointer at the end of the collection is not null before calling back()\n" "if you wish to avoid this exception.\n" "Consider using OwnVector::is_back_safe()\n"); } fixup(); touch(); return *data_.back(); }
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::back | ( | ) | const [inline] |
Definition at line 358 of file OwnVector.h.
References edm::errors::NullPointerError, query::result, and edm::Exception::throwThis().
{ T* result = data_.back(); if (result == 0) { Exception::throwThis(errors::NullPointerError, "In OwnVector::back() we have intercepted an attempt to dereference a null pointer\n" "Since OwnVector is allowed to contain null pointers, you much assure that the\n" "pointer at the end of the collection is not null before calling back()\n" "if you wish to avoid this exception.\n" "Consider using OwnVector::is_back_safe()\n"); } fixup(); return *data_.back(); }
OwnVector< T, P >::iterator edm::OwnVector< T, P >::begin | ( | void | ) | [inline] |
Definition at line 236 of file OwnVector.h.
Referenced by reco::CompositeCandidate::begin(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), pat::PATJetSelector::filter(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), RPCSeedOverlapper::isShareHit(), SiStripRecHitConverterAlgorithm::match(), PFAlgoTestBenchElectrons::processBlock(), RPCRecHitProducer::produce(), DTRecHitProducer::produce(), DTRecSegment2DProducer::produce(), DTSegment4DT0Corrector::produce(), DTRecSegment4DProducer::produce(), CSCOverlapsTrackPreparation::produce(), DTRecSegment2DExtendedProducer::produce(), TrackCandidate::recHits(), TrajectorySeed::recHits(), SiTrackerMultiRecHit::recHits(), cms::DiMuonTrajectorySeed::recHits(), DTNoDriftAlgo::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), PFPhotonAlgo::RunPFPhoton(), SiTrackerMultiRecHit::sharesInput(), KalmanAlignmentTrackRefitter::sortRecHits(), and TracktoRPC::TracktoRPC().
OwnVector< T, P >::const_iterator edm::OwnVector< T, P >::begin | ( | void | ) | const [inline] |
Definition at line 250 of file OwnVector.h.
void edm::OwnVector< T, P >::clear | ( | void | ) | [inline] |
Definition at line 399 of file OwnVector.h.
References matplotRender::destroy().
Referenced by RPCSeedOverlapper::CheckOverlap(), reco::CompositeRefCandidateT< GenParticleRefVector >::clearDaughters(), reco::CompositeCandidate::clearDaughters(), reco::CompositeRefCandidateT< GenParticleRefVector >::clearMothers(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), SiStripRecHitConverterAlgorithm::match(), GlobalTrackerMuonAlignment::muonFitter(), FastElectronSeedGenerator::prepareElTrackSeed(), ConvBremSeedProducer::produce(), TSGForRoadSearch::pushTrajectorySeed(), GlobalTrackerMuonAlignment::trackFitter(), and TracktoRPC::TracktoRPC().
OwnVector< T, P >::base const & edm::OwnVector< T, P >::data | ( | ) | const [inline] |
Definition at line 393 of file OwnVector.h.
Referenced by SiTrackerMultiRecHit::recHits().
void edm::OwnVector< T, P >::destroy | ( | ) | [inline, private] |
bool edm::OwnVector< T, P >::empty | ( | ) | const [inline] |
Definition at line 267 of file OwnVector.h.
Referenced by KalmanAlignmentTrackRefitter::refitTracks().
{ return data_.empty(); }
OwnVector< T, P >::const_iterator edm::OwnVector< T, P >::end | ( | void | ) | const [inline] |
Definition at line 256 of file OwnVector.h.
OwnVector< T, P >::iterator edm::OwnVector< T, P >::end | ( | void | ) | [inline] |
Definition at line 243 of file OwnVector.h.
Referenced by CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), reco::CompositeCandidate::end(), pat::PATJetSelector::filter(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHit(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHitsByDet(), RPCSeedOverlapper::isShareHit(), SiStripRecHitConverterAlgorithm::match(), RPCRecHitProducer::produce(), DTRecHitProducer::produce(), DTRecSegment2DProducer::produce(), DTSegment4DT0Corrector::produce(), DTRecSegment4DProducer::produce(), CSCOverlapsTrackPreparation::produce(), DTRecSegment2DExtendedProducer::produce(), TrackCandidate::recHits(), TrajectorySeed::recHits(), SiTrackerMultiRecHit::recHits(), cms::DiMuonTrajectorySeed::recHits(), DTNoDriftAlgo::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), PFPhotonAlgo::RunPFPhoton(), SiTrackerMultiRecHit::sharesInput(), KalmanAlignmentTrackRefitter::sortRecHits(), and TracktoRPC::TracktoRPC().
OwnVector< T, P >::iterator edm::OwnVector< T, P >::erase | ( | iterator | pos | ) |
Definition at line 405 of file OwnVector.h.
References edm::OwnVector< T, P >::iterator::i.
void edm::OwnVector< T, P >::fillPtrVector | ( | std::type_info const & | toType, |
std::vector< unsigned long > const & | indices, | ||
std::vector< void const * > & | ptrs | ||
) | const [inline] |
Definition at line 515 of file OwnVector.h.
References edm::detail::reallyfillPtrVector().
Referenced by edm::fillPtrVector().
{ detail::reallyfillPtrVector(*this, toType, indices, ptrs); }
void edm::OwnVector< T, P >::fillView | ( | ProductID const & | id, |
std::vector< void const * > & | pointers, | ||
helper_vector & | helpers | ||
) | const |
Definition at line 439 of file OwnVector.h.
References h, i, combine::key, edm::errors::NullPointerError, edm::reftobase::RefVectorHolderBase::push_back(), edm::reftobase::RefVectorHolderBase::reserve(), findQualityFiles::size, and edm::Exception::throwThis().
Referenced by edm::fillView().
{ typedef Ref<OwnVector> ref_type ; typedef reftobase::RefHolder<ref_type> holder_type; size_type numElements = this->size(); pointers.reserve(numElements); helpers.reserve(numElements); size_type key = 0; for(typename base::const_iterator i=data_.begin(), e=data_.end(); i!=e; ++i, ++key) { if (*i == 0) { Exception::throwThis(errors::NullPointerError, "In OwnVector::fillView() we have intercepted an attempt to put a null pointer\n" "into a View and that is not allowed. It is probably an error that the null\n" "pointer was in the OwnVector in the first place.\n"); } else { pointers.push_back(*i); holder_type h(ref_type(id, *i, key,this)); helpers.push_back(&h); } } }
void edm::OwnVector< T, P >::fixup | ( | ) | const [inline, private] |
Definition at line 185 of file OwnVector.h.
OwnVector< T, P >::reference edm::OwnVector< T, P >::front | ( | ) | [inline] |
Definition at line 373 of file OwnVector.h.
Referenced by MTFTrackProducerAlgorithm::filter(), DAFTrackProducerAlgorithm::filter(), MTFTrackProducerAlgorithm::fit(), DAFTrackProducerAlgorithm::fit(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), cms::CosmicTrackFinder::produce(), and KalmanAlignmentTrackRefitter::sortRecHits().
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::front | ( | ) | const [inline] |
Definition at line 380 of file OwnVector.h.
bool edm::OwnVector< T, P >::is_back_safe | ( | ) | const [inline] |
Definition at line 337 of file OwnVector.h.
{ return data_.back() != 0; }
OwnVector< T, P > & edm::OwnVector< T, P >::operator= | ( | OwnVector< T, P > const & | o | ) | [inline] |
Definition at line 219 of file OwnVector.h.
References edm::swap(), and cond::rpcobtemp::temp.
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::operator[] | ( | size_type | n | ) | const [inline] |
static Ordering<O> edm::OwnVector< T, P >::ordering | ( | O const & | comp | ) | [inline, static, private] |
Definition at line 180 of file OwnVector.h.
{
return Ordering<O>(comp);
}
void edm::OwnVector< T, P >::pop_back | ( | ) | [inline] |
Definition at line 328 of file OwnVector.h.
void edm::OwnVector< T, P >::push_back | ( | std::auto_ptr< D > | d | ) | [inline] |
Definition at line 314 of file OwnVector.h.
void edm::OwnVector< T, P >::push_back | ( | D *& | d | ) | [inline] |
Definition at line 290 of file OwnVector.h.
Referenced by reco::CompositeCandidate::addDaughter(), pat::PATObject< reco::Muon >::addUserData(), pat::PATObject< reco::Muon >::addUserDataFromPtr(), MuonAssociatorByHits::associateMuons(), MuonErrorMatrixAdjuster::attachRecHits(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedFromGenericPairOrTriplet::buildSeed(), RPCSeedOverlapper::CheckOverlap(), RPCSeedPattern::createFakeSeed(), MuonSeedCreator::createSeed(), RPCSeedPattern::createSeed(), OutInConversionSeedFinder::createSeed(), InOutConversionSeedFinder::createSeed(), MuonSeedFromRecHits::createSeed(), RoadSearchTrackCandidateMakerAlgorithm::createSeedTrajectory(), CSCSegtoRPC::CSCSegtoRPC(), DTSegtoRPC::DTSegtoRPC(), SiStripElectronAlgo::findElectron(), SeedFromNuclearInteraction::hits(), CosmicLayerPairs::init(), reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), SETSeedFinder::makeSeed(), SiStripRecHitMatcher::match(), GlobalTrackerMuonAlignment::muonFitter(), FastElectronSeedGenerator::prepareElTrackSeed(), RoadSearchTrackCandidateMakerAlgorithm::PrepareTrackCandidates(), PFAlgoTestBenchElectrons::processBlock(), SeedCombiner::produce(), cms::SimpleTrackListMerger::produce(), L2MuonSeedGenerator::produce(), TrajectorySeedFromMuonProducer::produce(), TrackCandidateProducer::produce(), TrackCandidateTopBottomHitFilter::produce(), SETMuonSeedProducer::produce(), DTSegment4DT0Corrector::produce(), TrackerToMuonPropagator::produce(), TrajectorySeedProducer::produce(), cms::CosmicTrackFinder::produce(), ConvBremSeedProducer::produce(), CSCOverlapsTrackPreparation::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), TSGForRoadSearch::pushTrajectorySeed(), DTRefitAndCombineReco4D::reconstruct(), DTCombinatorialExtendedPatternReco::reconstruct(), DTRecHitBaseAlgo::reconstruct(), RPCRecHitBaseAlgo::reconstruct(), DTNoDriftAlgo::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco::reconstruct(), DTCombinatorialPatternReco::reconstruct(), PFAlgo::reconstructParticles(), KalmanAlignmentTrackRefitter::refitTracks(), RoadSearchTrackCandidateMakerAlgorithm::run(), PFPhotonAlgo::RunPFPhoton(), SeedFromProtoTrack::SeedFromProtoTrack(), SeedGeneratorForCRack::seeds(), SimpleCosmicBONSeeder::seeds(), SeedGeneratorForCosmics::seeds(), SiTrackerMultiRecHit::SiTrackerMultiRecHit(), KalmanAlignmentTrackRefitter::sortRecHits(), FastTSGFromPropagation::trackerSeeds(), TSGFromPropagation::trackerSeeds(), GlobalTrackerMuonAlignment::trackFitter(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), TracktoRPC::TracktoRPC(), CosmicSeedCreator::trajectorySeed(), and PFBenchmarkAlgo::vector_add().
void edm::OwnVector< T, P >::push_back | ( | T const & | valueToCopy | ) | [inline] |
Definition at line 321 of file OwnVector.h.
References clone().
{ data_.push_back(policy_type::clone(d)); touch(); }
void edm::OwnVector< T, P >::push_back | ( | D *const & | d | ) | [inline] |
Definition at line 301 of file OwnVector.h.
void edm::OwnVector< T, P >::reserve | ( | size_t | n | ) | [inline] |
Definition at line 284 of file OwnVector.h.
Referenced by reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), SiStripRecHitMatcher::match(), SeedCombiner::produce(), cms::SimpleTrackListMerger::produce(), TrackCandidateProducer::produce(), cms::CosmicTrackFinder::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), OutInConversionTrackFinder::tracks(), and InOutConversionTrackFinder::tracks().
void edm::OwnVector< T, P >::setPtr | ( | std::type_info const & | toType, |
unsigned long | index, | ||
void const *& | ptr | ||
) | const [inline] |
Definition at line 496 of file OwnVector.h.
References getHLTprescales::index.
Referenced by edm::setPtr().
{ detail::reallySetPtr<OwnVector<T,P> >(*this, toType, index, ptr); }
OwnVector< T, P >::size_type edm::OwnVector< T, P >::size | ( | void | ) | const [inline] |
Definition at line 262 of file OwnVector.h.
Referenced by MuonAssociatorByHits::associateMuons(), PFRecoTauAlgorithm::buildPFTau(), FWPFBlockProxyBuilder::buildViewType(), PFBlockAlgo::checkDisplacedVertexLinks(), RPCSeedOverlapper::CheckOverlap(), DTSegtoRPC::DTSegtoRPC(), JetMatchingTools::getGenParticle(), RPCSeedOverlapper::isShareHit(), SiStripRecHitConverterAlgorithm::match(), GlobalTrackerMuonAlignment::muonFitter(), TrajectorySeed::nHits(), reco::CompositeCandidate::numberOfDaughters(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), PFDisplacedVertexCandidateFinder::packLinks(), PFAlgoTestBenchElectrons::processBlock(), PFRootEventManagerColin::processHIGH_E_TAUS(), RPCRecHitProducer::produce(), DTRecHitProducer::produce(), TrackCandidateProducer::produce(), TrackCandidateTopBottomHitFilter::produce(), DTRecSegment2DProducer::produce(), TrackerToMuonPropagator::produce(), DTRecSegment4DProducer::produce(), TrajectorySeedProducer::produce(), DTRecSegment2DExtendedProducer::produce(), CSCOverlapsTrackPreparation::produce(), PFAlgo::reconstructParticles(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), SimpleTrackRefitter::refitTrack(), KalmanAlignmentTrackRefitter::refitTracks(), RoadSearchTrackCandidateMakerAlgorithm::run(), PFPhotonAlgo::RunPFPhoton(), PFConversionAlgo::setLinks(), PFElectronAlgo::SetLinks(), SiTrackerMultiRecHit::sharesInput(), KalmanAlignmentTrackRefitter::sortRecHits(), pat::Jet::tagInfo(), pat::Jet::tagInfoByType(), GlobalTrackerMuonAlignment::trackFitter(), and OutInConversionTrackFinder::tracks().
{ return data_.size(); }
Definition at line 423 of file OwnVector.h.
References cmsCodeRules::config::ordering, and python::multivaluedict::sort().
Referenced by PFBenchmarkAlgo::vector_sort().
void edm::OwnVector< T, P >::sort | ( | ) |
Definition at line 428 of file OwnVector.h.
References cmsCodeRules::config::ordering, and python::multivaluedict::sort().
void edm::OwnVector< T, P >::swap | ( | OwnVector< T, P > & | other | ) | [inline] |
Definition at line 433 of file OwnVector.h.
References edm::OwnVector< T, P >::data_, edm::hash_detail::fixup_(), edm::OwnVector< T, P >::fixup_, and edm::swap().
Referenced by KalmanAlignmentTrackRefitter::sortRecHits(), edm::swap(), TrajectorySeed::swap(), and TrackCandidate::TrackCandidate().
void edm::OwnVector< T, P >::touch | ( | ) | [inline, private] |
Definition at line 186 of file OwnVector.h.
{ fixup_.touch(); }
base edm::OwnVector< T, P >::data_ [private] |
Definition at line 183 of file OwnVector.h.
Referenced by edm::OwnVector< RPCRecHit >::fixup(), and edm::OwnVector< T, P >::swap().
helpers::PostReadFixupTrait<T>::type edm::OwnVector< T, P >::fixup_ [private] |
Definition at line 184 of file OwnVector.h.
Referenced by edm::OwnVector< RPCRecHit >::fixup(), edm::OwnVector< T, P >::swap(), and edm::OwnVector< RPCRecHit >::touch().