CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
edm::OwnVector< T, P > Class Template Reference

#include <OwnVector.h>

Classes

class  const_iterator
 
class  iterator
 
struct  Ordering
 

Public Types

typedef std::vector< T * > base
 
typedef T const & const_reference
 
typedef Tpointer
 
typedef P policy_type
 
typedef Treference
 
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
 
iterator end ()
 
const_iterator end () const
 
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, FillViewHelperVector &helpers) const
 
reference front ()
 
const_reference front () const
 
template<typename D >
void insert (const_iterator i, D *&d)
 
template<typename D >
void insert (const_iterator i, D *const &d)
 
template<typename D >
void insert (const_iterator i, std::auto_ptr< D > d)
 
void insert (const_iterator i, T const &valueToCopy)
 
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 *&d)
 
template<typename D >
void push_back (D *const &d)
 
template<typename D >
void push_back (std::auto_ptr< D > d)
 
void push_back (T const &valueToCopy)
 
void reserve (size_t)
 
void reverse ()
 
template<typename D >
void set (size_t i, D *&d)
 
template<typename D >
void set (size_t i, D *const &d)
 
template<typename D >
void set (size_t i, std::auto_ptr< D > d)
 
void set (size_t i, T const &valueToCopy)
 
void setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const
 
void shrink_to_fit ()
 
size_type size () const
 
template<typename S >
void sort (S s)
 
void sort ()
 
void swap (OwnVector< T, P > &other)
 
 ~OwnVector ()
 

Static Public Member Functions

static short Class_Version ()
 

Private Member Functions

void destroy ()
 

Static Private Member Functions

template<typename O >
static Ordering< O > ordering (O const &comp)
 

Private Attributes

base data_
 

Detailed Description

template<typename T, typename P = ClonePolicy<T>>
class edm::OwnVector< T, P >

Definition at line 24 of file OwnVector.h.

Member Typedef Documentation

template<typename T, typename P = ClonePolicy<T>>
typedef std::vector<T*> edm::OwnVector< T, P >::base

Definition at line 29 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef T const& edm::OwnVector< T, P >::const_reference

Definition at line 37 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef T* edm::OwnVector< T, P >::pointer

Definition at line 35 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef P edm::OwnVector< T, P >::policy_type

Definition at line 38 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef T& edm::OwnVector< T, P >::reference

Definition at line 36 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef base::size_type edm::OwnVector< T, P >::size_type

Definition at line 33 of file OwnVector.h.

template<typename T, typename P = ClonePolicy<T>>
typedef T edm::OwnVector< T, P >::value_type

Definition at line 34 of file OwnVector.h.

Constructor & Destructor Documentation

template<typename T , typename P >
edm::OwnVector< T, P >::OwnVector ( )
inline

Definition at line 201 of file OwnVector.h.

201  : data_() {
202  }
template<typename T , typename P >
edm::OwnVector< T, P >::OwnVector ( size_type  n)
inline

Definition at line 205 of file OwnVector.h.

205  : data_(n) {
206  }
template<typename T, typename P = ClonePolicy<T>>
edm::OwnVector< T, P >::OwnVector ( OwnVector< T, P > const &  )
template<typename T , typename P >
edm::OwnVector< T, P >::~OwnVector ( )
inline

Definition at line 223 of file OwnVector.h.

References pyrootRender::destroy().

223  {
224  destroy();
225  }
void destroy()
Definition: OwnVector.h:439

Member Function Documentation

template<typename T , typename P >
OwnVector< T, P >::reference edm::OwnVector< T, P >::back ( )
inline

Definition at line 401 of file OwnVector.h.

References edm::errors::NullPointerError, mps_fire::result, and edm::Exception::throwThis().

Referenced by SeedFromProtoTrack::init(), SeedCombiner::produce(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), DTCombinatorialPatternReco::reconstruct(), and DTCombinatorialExtendedPatternReco::reconstruct().

401  {
402  T* result = data_.back();
403  if (result == 0) {
405  "In OwnVector::back() we have intercepted an attempt to dereference a null pointer\n"
406  "Since OwnVector is allowed to contain null pointers, you much assure that the\n"
407  "pointer at the end of the collection is not null before calling back()\n"
408  "if you wish to avoid this exception.\n"
409  "Consider using OwnVector::is_back_safe()\n");
410  }
411  return *data_.back();
412  }
tuple result
Definition: mps_fire.py:83
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
long double T
template<typename T , typename P >
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::back ( ) const
inline

Definition at line 415 of file OwnVector.h.

References edm::errors::NullPointerError, mps_fire::result, and edm::Exception::throwThis().

415  {
416  T* result = data_.back();
417  if (result == 0) {
419  "In OwnVector::back() we have intercepted an attempt to dereference a null pointer\n"
420  "Since OwnVector is allowed to contain null pointers, you much assure that the\n"
421  "pointer at the end of the collection is not null before calling back()\n"
422  "if you wish to avoid this exception.\n"
423  "Consider using OwnVector::is_back_safe()\n");
424  }
425  return *data_.back();
426  }
tuple result
Definition: mps_fire.py:83
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
long double T
template<typename T , typename P >
OwnVector< T, P >::iterator edm::OwnVector< T, P >::begin ( void  )
inline
template<typename T , typename P >
OwnVector< T, P >::const_iterator edm::OwnVector< T, P >::begin ( void  ) const
inline

Definition at line 254 of file OwnVector.h.

254  {
255  return const_iterator(data_.begin());
256  }
template<typename T, typename P = ClonePolicy<T>>
static short edm::OwnVector< T, P >::Class_Version ( )
inlinestatic

Definition at line 180 of file OwnVector.h.

182 :
183  void destroy() noexcept;
#define noexcept
void destroy()
Definition: OwnVector.h:439
template<typename T , typename P >
void edm::OwnVector< T, P >::clear ( void  )
inline
template<typename T , typename P >
OwnVector< T, P >::base const & edm::OwnVector< T, P >::data ( ) const
inline
template<typename T , typename P >
void edm::OwnVector< T, P >::destroy ( )
inlineprivate

Definition at line 439 of file OwnVector.h.

References b, alignCSCRings::e, and i.

439  {
440  typename base::const_iterator b = data_.begin(), e = data_.end();
441  for(typename base::const_iterator i = b; i != e; ++ i)
442  delete * i;
443  }
int i
Definition: DBlmapReader.cc:9
double b
Definition: hdecay.h:120
template<typename T , typename P >
bool edm::OwnVector< T, P >::empty ( ) const
inline

Definition at line 269 of file OwnVector.h.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

269  {
270  return data_.empty();
271  }
template<typename T , typename P >
OwnVector< T, P >::iterator edm::OwnVector< T, P >::end ( void  )
inline
template<typename T , typename P >
OwnVector< T, P >::const_iterator edm::OwnVector< T, P >::end ( void  ) const
inline

Definition at line 259 of file OwnVector.h.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

259  {
260  return const_iterator(data_.end());
261  }
template<typename T , typename P >
OwnVector< T, P >::iterator edm::OwnVector< T, P >::erase ( iterator  pos)

Definition at line 457 of file OwnVector.h.

References edm::OwnVector< T, P >::iterator::i.

457  {
458  delete * pos.i;
459  return iterator(data_.erase(pos.i));
460  }
template<typename T , typename P >
OwnVector< T, P >::iterator edm::OwnVector< T, P >::erase ( iterator  first,
iterator  last 
)

Definition at line 463 of file OwnVector.h.

References b, alignCSCRings::e, i, and edm::OwnVector< T, P >::iterator::i.

463  {
464  typename base::iterator b = first.i, e = last.i;
465  for(typename base::iterator i = b; i != e; ++ i)
466  delete * i;
467  return iterator(data_.erase(b, e));
468  }
int i
Definition: DBlmapReader.cc:9
double b
Definition: hdecay.h:120
T first(std::pair< T, U > const &p)
template<typename T , typename P >
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 560 of file OwnVector.h.

References edm::detail::reallyfillPtrVector().

Referenced by edm::fillPtrVector().

562  {
563  detail::reallyfillPtrVector(*this, toType, indices, ptrs);
564  }
void reallyfillPtrVector(COLLECTION const &coll, std::type_info const &iToType, std::vector< unsigned long > const &iIndicies, std::vector< void const * > &oPtr)
Definition: fillPtrVector.h:38
template<typename T, typename P = ClonePolicy<T>>
void edm::OwnVector< T, P >::fillView ( ProductID const &  id,
std::vector< void const * > &  pointers,
FillViewHelperVector helpers 
) const

Referenced by edm::fillView().

template<typename T , typename P >
OwnVector< T, P >::reference edm::OwnVector< T, P >::front ( )
inline
template<typename T , typename P >
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::front ( ) const
inline

Definition at line 434 of file OwnVector.h.

434  {
435  return *data_.front();
436  }
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::insert ( const_iterator  i,
D *&  d 
)
inline

Definition at line 361 of file OwnVector.h.

References edm::OwnVector< T, P >::const_iterator::base_iter(), and ztail::d.

Referenced by BeautifulSoup.PageElement::_invert(), and PFElectronAlgo::SetLinks().

361  {
362  data_.insert(it.base_iter(), d);
363  d = 0;
364  }
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::insert ( const_iterator  i,
D *const &  d 
)
inline

Definition at line 368 of file OwnVector.h.

References edm::OwnVector< T, P >::const_iterator::base_iter(), and ztail::d.

Referenced by BeautifulSoup.PageElement::_invert().

368  {
369  data_.insert(it.base_iter(), d);
370  }
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::insert ( const_iterator  i,
std::auto_ptr< D >  d 
)
inline

Definition at line 375 of file OwnVector.h.

References edm::OwnVector< T, P >::const_iterator::base_iter().

Referenced by BeautifulSoup.PageElement::_invert().

375  {
376  data_.insert(it.base_iter(), d.release());
377  }
tuple d
Definition: ztail.py:151
template<typename T, typename P >
void edm::OwnVector< T, P >::insert ( const_iterator  i,
T const &  valueToCopy 
)
inline

Definition at line 381 of file OwnVector.h.

References edm::OwnVector< T, P >::const_iterator::base_iter(), and clone().

Referenced by BeautifulSoup.PageElement::_invert().

381  {
382  data_.insert(it.base_iter(), policy_type::clone(d));
383  }
tuple d
Definition: ztail.py:151
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
template<typename T , typename P >
bool edm::OwnVector< T, P >::is_back_safe ( ) const
inline

Definition at line 396 of file OwnVector.h.

396  {
397  return data_.back() != 0;
398  }
template<typename T, typename P>
OwnVector< T, P > & edm::OwnVector< T, P >::operator= ( OwnVector< T, P > const &  o)
inline

Definition at line 228 of file OwnVector.h.

References edm::swap(), and groupFilesInBlocks::temp.

228  {
229  OwnVector<T,P> temp(o);
230  swap(temp);
231  return *this;
232  }
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:481
template<typename T , typename P >
OwnVector< T, P >::reference edm::OwnVector< T, P >::operator[] ( size_type  n)
inline

Definition at line 274 of file OwnVector.h.

References gen::n.

274  {
275  return *data_[n];
276  }
template<typename T , typename P >
OwnVector< T, P >::const_reference edm::OwnVector< T, P >::operator[] ( size_type  n) const
inline

Definition at line 279 of file OwnVector.h.

References gen::n.

279  {
280  return *data_[n];
281  }
template<typename T, typename P = ClonePolicy<T>>
template<typename O >
static Ordering<O> edm::OwnVector< T, P >::ordering ( O const &  comp)
inlinestaticprivate

Definition at line 194 of file OwnVector.h.

194  {
195  return Ordering<O>(comp);
196  }
template<typename T , typename P >
void edm::OwnVector< T, P >::pop_back ( )
inline

Definition at line 388 of file OwnVector.h.

388  {
389  // We have to delete the pointed-to thing, before we squeeze it
390  // out of the vector...
391  delete data_.back();
392  data_.pop_back();
393  }
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::push_back ( D *&  d)
inline

Definition at line 290 of file OwnVector.h.

Referenced by reco::CompositeCandidate::addDaughter(), MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), MuonErrorMatrixAdjuster::attachRecHits(), SeedFromGenericPairOrTriplet::buildSeed(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), RPCSeedOverlapper::CheckOverlap(), Traj2TrackHits::copy(), RPCSeedPattern::createFakeSeed(), MuonSeedFromRecHits::createSeed(), MuonSeedCreator::createSeed(), RPCSeedPattern::createSeed(), OutInConversionSeedFinder::createSeed(), CosmicMuonSeedGenerator::createSeed(), InOutConversionSeedFinder::createSeed(), CSCSegtoRPC::CSCSegtoRPC(), OutsideInMuonSeeder::doLayer(), DTSegtoRPC::DTSegtoRPC(), SiStripElectronAlgo::findElectron(), SeedFromNuclearInteraction::hits(), CosmicLayerPairs::init(), reco::modules::CosmicTrackSplitter::makeCandidate(), reco::modules::TrackerTrackHitFilter::makeCandidate(), CosmicSeedCreator::makeSeed(), SETSeedFinder::makeSeed(), TSGForOI::makeSeedsFromHits(), SiStripRecHitMatcher::match(), TrackMerger::merge(), GlobalTrackerMuonAlignment::muonFitter(), PFAlgoTestBenchElectrons::processBlock(), PFAlgo::processBlock(), SeedCombiner::produce(), DTSegment4DT0Corrector::produce(), MuonReSeeder::produce(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), SETMuonSeedProducer::produce(), TrackCandidateProducer::produce(), TrackCandidateTopBottomHitFilter::produce(), TrajectorySeedFromMuonProducer::produce(), ConvBremSeedProducer::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsTrackPreparation::produce(), TrajectorySeedProducer::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), TSGForRoadSearch::pushTrajectorySeed(), DTNoDriftAlgo::reconstruct(), ME0RecHitBaseAlgo::reconstruct(), GEMRecHitBaseAlgo::reconstruct(), RPCRecHitBaseAlgo::reconstruct(), DTRecHitBaseAlgo::reconstruct(), DTMeantimerPatternReco4D::reconstruct(), DTCombinatorialPatternReco4D::reconstruct(), DTRefitAndCombineReco4D::reconstruct(), DTCombinatorialPatternReco::reconstruct(), DTCombinatorialExtendedPatternReco::reconstruct(), DTMeantimerPatternReco::reconstruct(), PFPhotonAlgo::RunPFPhoton(), SeedFromProtoTrack::SeedFromProtoTrack(), SeedGeneratorForCRack::seeds(), SeedGeneratorForCosmics::seeds(), SimpleCosmicBONSeeder::seeds(), SiTrackerMultiRecHit::SiTrackerMultiRecHit(), FastTrackerRecHitSplitter::split(), Traj2TrackHits::split(), TSGFromPropagation::trackerSeeds(), FastTSGFromPropagation::trackerSeeds(), GlobalTrackerMuonAlignment::trackFitter(), TracktoRPC::TracktoRPC(), and PFBenchmarkAlgo::vector_add().

290  {
291  // C++ does not yet support rvalue references, so d should only be
292  // able to bind to an lvalue.
293  // This should be called only for lvalues.
294  data_.push_back(d);
295  d = 0;
296  }
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::push_back ( D *const &  d)
inline

Definition at line 300 of file OwnVector.h.

300  {
301 
302  // C++ allows d to be bound to an lvalue or rvalue. But the other
303  // signature should be a better match for an lvalue (because it
304  // does not require an lvalue->rvalue conversion). Thus this
305  // signature should only be chosen for rvalues.
306  data_.push_back(d);
307  }
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::push_back ( std::auto_ptr< D >  d)
inline

Definition at line 312 of file OwnVector.h.

312  {
313  data_.push_back(d.release());
314  }
tuple d
Definition: ztail.py:151
template<typename T, typename P >
void edm::OwnVector< T, P >::push_back ( T const &  valueToCopy)
inline

Definition at line 318 of file OwnVector.h.

References clone().

318  {
319  data_.push_back(policy_type::clone(d));
320  }
tuple d
Definition: ztail.py:151
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
template<typename T , typename P >
void edm::OwnVector< T, P >::reserve ( size_t  n)
inline
template<typename T, typename P = ClonePolicy<T>>
void edm::OwnVector< T, P >::reverse ( )
inline

Definition at line 159 of file OwnVector.h.

Referenced by cms::CosmicTrackFinder::produce().

159 { std::reverse(data_.begin(),data_.end());}
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::set ( size_t  i,
D *&  d 
)
inline

Definition at line 324 of file OwnVector.h.

References ztail::d, and i.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

324  {
325  // see push_back for documentation
326  if (d == data_[i]) return;
327  delete data_[i];
328  data_[i] = d;
329  d = 0;
330  }
int i
Definition: DBlmapReader.cc:9
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::set ( size_t  i,
D *const &  d 
)
inline

Definition at line 334 of file OwnVector.h.

References ztail::d, and i.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

334  {
335  // see push_back for documentation
336  if (d == data_[i]) return;
337  delete data_[i];
338  data_[i] = d;
339  }
int i
Definition: DBlmapReader.cc:9
tuple d
Definition: ztail.py:151
template<typename T , typename P >
template<typename D >
void edm::OwnVector< T, P >::set ( size_t  i,
std::auto_ptr< D >  d 
)
inline

Definition at line 344 of file OwnVector.h.

References i.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

344  {
345  if (d.get() == data_[i]) return;
346  delete data_[i];
347  data_[i] = d.release();
348  }
int i
Definition: DBlmapReader.cc:9
tuple d
Definition: ztail.py:151
template<typename T, typename P >
void edm::OwnVector< T, P >::set ( size_t  i,
T const &  valueToCopy 
)
inline

Definition at line 352 of file OwnVector.h.

References clone(), and i.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

352  {
353  if (&d == data_[i]) return;
354  delete data_[i];
356  }
int i
Definition: DBlmapReader.cc:9
tuple d
Definition: ztail.py:151
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
template<typename T , typename P >
void edm::OwnVector< T, P >::setPtr ( std::type_info const &  toType,
unsigned long  index,
void const *&  ptr 
) const
inline

Definition at line 541 of file OwnVector.h.

References cmsHarvester::index.

Referenced by edm::setPtr().

543  {
544  detail::reallySetPtr<OwnVector<T,P> >(*this, toType, index, ptr);
545  }
template<typename T, typename P = ClonePolicy<T>>
void edm::OwnVector< T, P >::shrink_to_fit ( )
inline

Definition at line 128 of file OwnVector.h.

Referenced by Traj2TrackHits::operator()().

128  {
129  data_.shrink_to_fit();
130  }
template<typename T , typename P >
OwnVector< T, P >::size_type edm::OwnVector< T, P >::size ( void  ) const
inline

Definition at line 264 of file OwnVector.h.

Referenced by DiJetAnalyzer::analyze(), GammaJetAnalysis::analyze(), MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), PFRecoTauAlgorithm::buildPFTau(), FWPFBlockProxyBuilder::buildViewType(), RPCSeedOverlapper::CheckOverlap(), DTSegtoRPC::DTSegtoRPC(), METAnalyzer::fillMonitorElement(), JetMatchingTools::getGenParticle(), RPCSeedOverlapper::isShareHit(), SiStripRecHitConverterAlgorithm::match(), GlobalTrackerMuonAlignment::muonFitter(), TrajectorySeed::nHits(), reco::CompositeCandidate::numberOfDaughters(), reco::tau::RecoTauElectronRejectionPlugin::operator()(), PFAlgoTestBenchElectrons::processBlock(), PFAlgo::processBlock(), DTRecSegment4DProducer::produce(), DTRecHitProducer::produce(), DTRecSegment2DProducer::produce(), DTRecSegment2DExtendedProducer::produce(), TrackCandidateTopBottomHitFilter::produce(), GEMRecHitProducer::produce(), RPCRecHitProducer::produce(), ME0RecHitProducer::produce(), PFEGammaProducer::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsTrackPreparation::produce(), TrajectorySeedProducer::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), PFAlgo::reconstructParticles(), PFPhotonAlgo::RunPFPhoton(), PFElectronAlgo::SetLinks(), SiTrackerMultiRecHit::sharesInput(), pat::Jet::tagInfoByType(), GlobalTrackerMuonAlignment::trackFitter(), and OutInConversionTrackFinder::tracks().

264  {
265  return data_.size();
266  }
template<typename T , typename P >
template<typename S >
void edm::OwnVector< T, P >::sort ( S  s)

Definition at line 471 of file OwnVector.h.

References config::ordering.

Referenced by PFBenchmarkAlgo::vector_sort().

471  {
472  std::sort(data_.begin(), data_.end(), ordering(comp));
473  }
static Ordering< O > ordering(O const &comp)
Definition: OwnVector.h:194
template<typename T , typename P >
void edm::OwnVector< T, P >::sort ( )

Definition at line 476 of file OwnVector.h.

References config::ordering.

476  {
477  std::sort(data_.begin(), data_.end(), ordering(std::less<value_type>()));
478  }
static Ordering< O > ordering(O const &comp)
Definition: OwnVector.h:194
template<typename T, typename P>
void edm::OwnVector< T, P >::swap ( OwnVector< T, P > &  other)
inline

Definition at line 481 of file OwnVector.h.

Referenced by TrajectorySeed::swap(), and TrackCandidate::TrackCandidate().

481  {
482  data_.swap(other.data_);
483  }

Member Data Documentation

template<typename T, typename P = ClonePolicy<T>>
base edm::OwnVector< T, P >::data_
private