#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) noexcept |
~OwnVector () noexcept | |
Private Types | |
typedef std::vector< T * > | base |
Private Member Functions | |
void | destroy () noexcept |
Static Private Member Functions | |
template<typename O > | |
static Ordering< O > | ordering (O const &comp) |
Private Attributes | |
base | data_ |
Definition at line 25 of file OwnVector.h.
typedef std::vector<T*> edm::OwnVector< T, P >::base [private] |
Definition at line 30 of file OwnVector.h.
typedef T const& edm::OwnVector< T, P >::const_reference |
Definition at line 38 of file OwnVector.h.
typedef T* edm::OwnVector< T, P >::pointer |
Definition at line 36 of file OwnVector.h.
typedef P edm::OwnVector< T, P >::policy_type |
Definition at line 39 of file OwnVector.h.
typedef T& edm::OwnVector< T, P >::reference |
Definition at line 37 of file OwnVector.h.
typedef base::size_type edm::OwnVector< T, P >::size_type |
Definition at line 34 of file OwnVector.h.
typedef T edm::OwnVector< T, P >::value_type |
Definition at line 35 of file OwnVector.h.
edm::OwnVector< T, P >::OwnVector | ( | ) | [inline] |
Definition at line 184 of file OwnVector.h.
: data_() { }
edm::OwnVector< T, P >::OwnVector | ( | size_type | n | ) | [inline] |
Definition at line 188 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 320 of file OwnVector.h.
References edm::errors::NullPointerError, query::result, and edm::Exception::throwThis().
Referenced by SeedFromProtoTrack::init(), SeedCombiner::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::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"); } return *data_.back(); }
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::back | ( | ) | const [inline] |
Definition at line 334 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"); } return *data_.back(); }
OwnVector< T, P >::iterator edm::OwnVector< T, P >::begin | ( | void | ) | [inline] |
Definition at line 227 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(), TrajectorySeed::recHits(), TrackCandidate::recHits(), SiTrackerMultiRecHit::recHits(), cms::DiMuonTrajectorySeed::recHits(), DTNoDriftAlgo::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), PFPhotonAlgo::RunPFPhoton(), SiTrackerMultiRecHit::sharesInput(), KalmanAlignmentTrackRefitter::sortRecHits(), and TracktoRPC::TracktoRPC().
{ return iterator(data_.begin()); }
OwnVector< T, P >::const_iterator edm::OwnVector< T, P >::begin | ( | void | ) | const [inline] |
Definition at line 237 of file OwnVector.h.
{ return const_iterator(data_.begin()); }
void edm::OwnVector< T, P >::clear | ( | void | ) | [inline] |
Definition at line 370 of file OwnVector.h.
References pyrootRender::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 365 of file OwnVector.h.
Referenced by SiTrackerMultiRecHit::recHits().
{ return data_; }
void edm::OwnVector< T, P >::destroy | ( | ) | [inline, private] |
bool edm::OwnVector< T, P >::empty | ( | ) | const [inline] |
Definition at line 252 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 242 of file OwnVector.h.
{ return const_iterator(data_.end()); }
OwnVector< T, P >::iterator edm::OwnVector< T, P >::end | ( | void | ) | [inline] |
Definition at line 232 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().
{ return iterator(data_.end()); }
OwnVector< T, P >::iterator edm::OwnVector< T, P >::erase | ( | iterator | pos | ) |
Definition at line 376 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 481 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 405 of file OwnVector.h.
References alignCSCRings::e, 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); } } }
OwnVector< T, P >::reference edm::OwnVector< T, P >::front | ( | ) | [inline] |
Definition at line 348 of file OwnVector.h.
Referenced by SiTrackerMultiRecHit::firstClusterRef(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), cms::CosmicTrackFinder::produce(), and KalmanAlignmentTrackRefitter::sortRecHits().
{ return *data_.front(); }
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::front | ( | ) | const [inline] |
Definition at line 353 of file OwnVector.h.
{ return *data_.front(); }
bool edm::OwnVector< T, P >::is_back_safe | ( | ) | const [inline] |
Definition at line 315 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 211 of file OwnVector.h.
References edm::swap(), and groupFilesInBlocks::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 177 of file OwnVector.h.
{
return Ordering<O>(comp);
}
void edm::OwnVector< T, P >::pop_back | ( | ) | [inline] |
Definition at line 307 of file OwnVector.h.
void edm::OwnVector< T, P >::push_back | ( | std::auto_ptr< D > | d | ) | [inline] |
Definition at line 295 of file OwnVector.h.
{ data_.push_back(d.release()); }
void edm::OwnVector< T, P >::push_back | ( | T const & | valueToCopy | ) | [inline] |
Definition at line 301 of file OwnVector.h.
References clone().
{ data_.push_back(policy_type::clone(d)); }
void edm::OwnVector< T, P >::push_back | ( | D *& | d | ) | [inline] |
Definition at line 273 of file OwnVector.h.
Referenced by reco::CompositeCandidate::addDaughter(), pat::PATObject< reco::Muon >::addUserData(), pat::PATObject< reco::Muon >::addUserDataFromPtr(), MuonAssociatorByHits::associateMuons(), MuonErrorMatrixAdjuster::attachRecHits(), SeedForPhotonConversion1Leg::buildSeed(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedFromGenericPairOrTriplet::buildSeed(), SeedForPhotonConversionFromQuadruplets::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::TrackListMerger::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().
{ // C++ does not yet support rvalue references, so d should only be // able to bind to an lvalue. // This should be called only for lvalues. data_.push_back(d); d = 0; }
void edm::OwnVector< T, P >::push_back | ( | D *const & | d | ) | [inline] |
Definition at line 283 of file OwnVector.h.
{ // C++ allows d to be bound to an lvalue or rvalue. But the other // signature should be a better match for an lvalue (because it // does not require an lvalue->rvalue conversion). Thus this // signature should only be chosen for rvalues. data_.push_back(d); }
void edm::OwnVector< T, P >::reserve | ( | size_t | n | ) | [inline] |
Definition at line 267 of file OwnVector.h.
Referenced by reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), SiStripRecHitMatcher::match(), SeedCombiner::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::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 462 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 247 of file OwnVector.h.
Referenced by MuonAssociatorByHits::associateMuons(), PFRecoTauAlgorithm::buildPFTau(), FWPFBlockProxyBuilder::buildViewType(), 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(), KalmanAlignmentTrackRefitter::refitTracks(), RoadSearchTrackCandidateMakerAlgorithm::run(), PFPhotonAlgo::RunPFPhoton(), PFElectronAlgo::SetLinks(), SiTrackerMultiRecHit::sharesInput(), KalmanAlignmentTrackRefitter::sortRecHits(), pat::Jet::tagInfo(), pat::Jet::tagInfoByType(), GlobalTrackerMuonAlignment::trackFitter(), and OutInConversionTrackFinder::tracks().
{ return data_.size(); }
void edm::OwnVector< T, P >::sort | ( | ) |
Definition at line 395 of file OwnVector.h.
References cmsCodeRules::config::ordering, and python::multivaluedict::sort().
Definition at line 390 of file OwnVector.h.
References cmsCodeRules::config::ordering, and python::multivaluedict::sort().
Referenced by PFBenchmarkAlgo::vector_sort().
void edm::OwnVector< T, P >::swap | ( | OwnVector< T, P > & | other | ) | [inline] |
Definition at line 400 of file OwnVector.h.
Referenced by KalmanAlignmentTrackRefitter::sortRecHits(), TrajectorySeed::swap(), and TrackCandidate::TrackCandidate().
{ data_.swap(other.data_); }
base edm::OwnVector< T, P >::data_ [private] |
Definition at line 180 of file OwnVector.h.