Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
art::PtrVector< T > Class Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Common/fwd.h"

Inheritance diagram for art::PtrVector< T >:
art::PtrVectorBase

Public Types

typedef data_t::value_type value_type
 
typedef data_t::allocator_type allocator_type
 
typedef data_t::reference reference
 
typedef data_t::const_reference const_reference
 
typedef data_t::pointer pointer
 
typedef data_t::const_pointer const_pointer
 
typedef data_t::iterator iterator
 
typedef data_t::const_iterator const_iterator
 
typedef data_t::reverse_iterator reverse_iterator
 
typedef data_t::const_reverse_iterator const_reverse_iterator
 
typedef data_t::difference_type difference_type
 
typedef data_t::size_type size_type
 
typedef unsigned long key_type
 
typedef std::vector< key_typeindices_t
 

Public Member Functions

 PtrVector ()
 
template<typename U >
 PtrVector (PtrVector< U > const &other)
 
template<typename U >
 PtrVector (std::initializer_list< Ptr< U >> il)
 
template<typename U >
PtrVector< T > & operator= (std::initializer_list< Ptr< U >> il)
 
template<typename U >
PtrVector< T > & operator= (PtrVector< U > const &other)&
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
size_type size () const
 
size_type max_size () const
 
void resize (size_type n)
 
size_type capacity () const
 
bool empty () const
 
void reserve (size_type n)
 
void shrink_to_fit ()
 
Ptr< T > const & operator[] (unsigned long const idx) const
 
reference at (size_type n)
 
const_reference at (size_type n) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
template<typename U >
void assign (size_type n, Ptr< U > const &p)
 
template<class InputIterator >
void assign (InputIterator first, InputIterator last)
 
template<typename U >
void assign (std::initializer_list< Ptr< U >> il)
 
template<typename U >
void push_back (Ptr< U > const &p)
 
void pop_back ()
 
template<typename U >
iterator insert (iterator position, Ptr< U > const &p)
 
template<typename U >
void insert (iterator position, size_type n, Ptr< U > const &p)
 
template<typename InputIterator >
iterator insert (PV_INSERT_POSITION_TYPE position, InputIterator first, InputIterator last)
 
iterator erase (iterator position)
 
iterator erase (iterator first, iterator last)
 
void swap (PtrVector &other)
 
void swap (key_type k1, key_type k2)
 
void clear ()
 
bool operator== (PtrVector const &other) const
 
void sort ()
 
template<class COMP >
void sort (COMP comp)
 
template<typename U >
art::PtrVector< T > & operator= (std::initializer_list< Ptr< U >> il)
 
template<typename U >
art::PtrVector< T > & operator= (PtrVector< U > const &other)&
 
template<typename U >
art::PtrVector< T >::iterator insert (iterator position, Ptr< U > const &p)
 
template<typename InputIterator >
auto insert (PV_INSERT_POSITION_TYPE position, InputIterator first, InputIterator last) -> iterator
 
bool isNonnull () const
 
bool isNull () const
 
bool isAvailable () const
 
ProductID id () const
 
EDProductGetter const * productGetter () const
 
void setProductGetter (EDProductGetter *g) const
 
template<typename T >
art::Ptr< T >::key_type key (Ptr< T > const &ptr) const
 

Static Public Member Functions

static short Class_Version ()
 

Protected Member Functions

void swap (PtrVectorBase &)
 
void updateCore (RefCore const &core)
 
bool operator== (PtrVectorBase const &) const
 

Private Types

typedef std::vector< Ptr< T > > data_t
 

Private Member Functions

void fill_offsets (indices_t &indices) override
 
void fill_from_offsets (indices_t const &indices) const override
 
void zeroTransients () override
 

Private Attributes

data_t ptrs_
 

Detailed Description

template<typename T>
class art::PtrVector< T >

Definition at line 30 of file fwd.h.

Member Typedef Documentation

template<typename T>
typedef data_t::allocator_type art::PtrVector< T >::allocator_type

Definition at line 55 of file PtrVector.h.

template<typename T>
typedef data_t::const_iterator art::PtrVector< T >::const_iterator

Definition at line 61 of file PtrVector.h.

template<typename T>
typedef data_t::const_pointer art::PtrVector< T >::const_pointer

Definition at line 59 of file PtrVector.h.

template<typename T>
typedef data_t::const_reference art::PtrVector< T >::const_reference

Definition at line 57 of file PtrVector.h.

template<typename T>
typedef data_t::const_reverse_iterator art::PtrVector< T >::const_reverse_iterator

Definition at line 63 of file PtrVector.h.

template<typename T>
typedef std::vector<Ptr<T> > art::PtrVector< T >::data_t
private

Definition at line 51 of file PtrVector.h.

template<typename T>
typedef data_t::difference_type art::PtrVector< T >::difference_type

Definition at line 64 of file PtrVector.h.

typedef std::vector<key_type> art::PtrVectorBase::indices_t
inherited

Definition at line 24 of file PtrVectorBase.h.

template<typename T>
typedef data_t::iterator art::PtrVector< T >::iterator

Definition at line 60 of file PtrVector.h.

typedef unsigned long art::PtrVectorBase::key_type
inherited

Definition at line 23 of file PtrVectorBase.h.

template<typename T>
typedef data_t::pointer art::PtrVector< T >::pointer

Definition at line 58 of file PtrVector.h.

template<typename T>
typedef data_t::reference art::PtrVector< T >::reference

Definition at line 56 of file PtrVector.h.

template<typename T>
typedef data_t::reverse_iterator art::PtrVector< T >::reverse_iterator

Definition at line 62 of file PtrVector.h.

template<typename T>
typedef data_t::size_type art::PtrVector< T >::size_type

Definition at line 65 of file PtrVector.h.

template<typename T>
typedef data_t::value_type art::PtrVector< T >::value_type

Definition at line 54 of file PtrVector.h.

Constructor & Destructor Documentation

template<typename T >
art::PtrVector< T >::PtrVector ( )
inline

Definition at line 165 of file PtrVector.h.

165  : PtrVectorBase(), ptrs_()
166 {}
PtrVectorBase()=default
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
template<typename U >
art::PtrVector< T >::PtrVector ( PtrVector< U > const &  other)
inline

Definition at line 170 of file PtrVector.h.

References art::PtrVector< T >::begin(), art::PtrVector< T >::end(), art::PtrVector< T >::ptrs_, and art::PtrVector< T >::size().

172 {
173  // Ensure that types are compatible.
175  "PtrVector: incompatible types");
176  ptrs_.reserve(other.size());
177  std::copy(other.begin(), other.end(), std::back_inserter(ptrs_));
178 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
PtrVectorBase()=default
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
template<typename U >
art::PtrVector< T >::PtrVector ( std::initializer_list< Ptr< U >>  il)
inline

Definition at line 182 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, and art::PtrVectorBase::updateCore().

183  : PtrVectorBase(), ptrs_()
184 {
187  "PtrVector: incompatible types");
188  ptrs_.reserve(il.size());
189  for (auto&& p : il) {
190  updateCore(p.refCore());
191  ptrs_.push_back(std::move(p));
192  }
193 }
const char * p
Definition: xmltok.h:285
const XML_Char int const XML_Char * value
Definition: expat.h:331
PtrVectorBase()=default
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)

Member Function Documentation

template<typename T >
template<typename U >
void art::PtrVector< T >::assign ( size_type  n,
Ptr< U > const &  p 
)
inline

Definition at line 409 of file PtrVector.h.

References art::PtrVectorBase::clear(), art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), and art::PtrVectorBase::updateCore().

Referenced by art::PtrVector< T >::assign(), and art::PtrVector< T >::operator=().

410 {
413  "PtrVector: incompatible types");
415  updateCore(p.refCore());
416  ptrs_.assign(n, p);
417 }
const char * p
Definition: xmltok.h:285
const XML_Char int const XML_Char * value
Definition: expat.h:331
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
template<typename T >
template<typename InputIterator >
void art::PtrVector< T >::assign ( InputIterator  first,
InputIterator  last 
)
inline

Definition at line 422 of file PtrVector.h.

References art::PtrVectorBase::clear(), art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), and art::PtrVectorBase::updateCore().

423 {
425  std::for_each(
426  first, last, [this](Ptr<T> const& p) { updateCore(p.refCore()); });
427  ptrs_.assign(first, last);
428 }
const char * p
Definition: xmltok.h:285
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
template<typename T >
template<typename U >
void art::PtrVector< T >::assign ( std::initializer_list< Ptr< U >>  il)
inline

Definition at line 433 of file PtrVector.h.

References art::PtrVector< T >::assign().

434 {
435  assign(il.begin(), il.end());
436 }
void assign(size_type n, Ptr< U > const &p)
Definition: PtrVector.h:409
template<typename T >
auto art::PtrVector< T >::at ( size_type  n)
inline
template<typename T >
auto art::PtrVector< T >::at ( size_type  n) const
inline

Definition at line 372 of file PtrVector.h.

References getGoodRuns4SAM::n, and art::PtrVector< T >::ptrs_.

373 {
374  return ptrs_.at(n);
375 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::back ( )
inline

Definition at line 393 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

394 {
395  return ptrs_.back();
396 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::back ( ) const
inline

Definition at line 400 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

401 {
402  return ptrs_.back();
403 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::begin ( )
inline
template<typename T >
auto art::PtrVector< T >::begin ( ) const
inline

Definition at line 230 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

231 {
232  return ptrs_.begin();
233 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::capacity ( ) const
inline

Definition at line 329 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

330 {
331  return ptrs_.capacity();
332 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::cbegin ( ) const
inline

Definition at line 279 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by novaddt::HoughTracker::filter().

280 {
281  return ptrs_.cbegin();
282 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::cend ( ) const
inline

Definition at line 286 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by novaddt::HoughTracker::filter().

287 {
288  return ptrs_.cend();
289 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T>
static short art::PtrVector< T >::Class_Version ( )
inlinestatic

Definition at line 144 of file PtrVector.h.

145  {
146  return 11;
147  }
template<typename T >
void art::PtrVector< T >::clear ( )
inline
template<typename T >
auto art::PtrVector< T >::crbegin ( ) const
inline

Definition at line 293 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

294 {
295  return ptrs_.crbegin();
296 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::crend ( ) const
inline

Definition at line 300 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

301 {
302  return ptrs_.crend();
303 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
bool art::PtrVector< T >::empty ( ) const
inline
template<typename T >
auto art::PtrVector< T >::end ( )
inline
template<typename T >
auto art::PtrVector< T >::end ( ) const
inline

Definition at line 244 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

245 {
246  return ptrs_.end();
247 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::erase ( iterator  position)
inline

Definition at line 508 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by rb::Cluster::RemoveHit().

509 {
510  return ptrs_.erase(position);
511 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 515 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

516 {
517  return ptrs_.erase(first, last);
518 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::fill_from_offsets ( indices_t const &  indices) const
overrideprivatevirtual

Implements art::PtrVectorBase.

Definition at line 579 of file PtrVector.h.

References ana::assert(), MECModelEnuComparisons::i, art::PtrVectorBase::productGetter(), and art::PtrVector< T >::ptrs_.

580 {
581  // Precondition: ptrs_ is expected to be empty.
582  assert(ptrs_.empty());
583  ptrs_.reserve(indices.size());
584  for (auto i : indices) {
585  ptrs_.emplace_back(id(), i, productGetter());
586  }
587 }
EDProductGetter const * productGetter() const
Definition: PtrVectorBase.h:90
assert(nhit_max >=nhit_nbins)
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::fill_offsets ( indices_t indices)
overrideprivatevirtual

Implements art::PtrVectorBase.

Definition at line 567 of file PtrVector.h.

References ana::assert(), MECModelEnuComparisons::i, and art::PtrVector< T >::ptrs_.

568 {
569  // Precondition: indices is expected to be empty.
570  assert(indices.empty());
571  indices.reserve(ptrs_.size());
572  for (auto const& i : ptrs_) {
573  indices.push_back(i.key());
574  }
575 }
assert(nhit_max >=nhit_nbins)
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::front ( )
inline

Definition at line 379 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by trk::CosmicTrackAlg::MakeTrack(), cheat::TrackCheater::produce(), and trk::WindowTrackingAlg::ShortTrack().

380 {
381  return ptrs_.front();
382 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::front ( ) const
inline

Definition at line 386 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

387 {
388  return ptrs_.front();
389 }
data_t ptrs_
Definition: PtrVector.h:155
art::ProductID art::PtrVectorBase::id ( ) const
inlineinherited

Definition at line 84 of file PtrVectorBase.h.

85 {
86  return core_.id();
87 }
ProductID id() const
Definition: RefCore.h:93
template<typename T>
template<typename U >
iterator art::PtrVector< T >::insert ( iterator  position,
Ptr< U > const &  p 
)
template<typename T >
template<typename U >
void art::PtrVector< T >::insert ( iterator  position,
size_type  n,
Ptr< U > const &  p 
)
inline

Definition at line 474 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), and art::PtrVectorBase::updateCore().

475 {
476  // Ensure that types are compatible.
479  "PtrVector: incompatible types");
480  updateCore(p.refCore());
481  ptrs_.insert(position, n, p);
482 }
const char * p
Definition: xmltok.h:285
const XML_Char int const XML_Char * value
Definition: expat.h:331
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
template<typename T>
template<typename InputIterator >
iterator art::PtrVector< T >::insert ( PV_INSERT_POSITION_TYPE  position,
InputIterator  first,
InputIterator  last 
)
template<typename T>
template<typename U >
art::PtrVector<T>::iterator art::PtrVector< T >::insert ( iterator  position,
Ptr< U > const &  p 
)
inline

Definition at line 461 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), and art::PtrVectorBase::updateCore().

462 {
463  // Ensure that types are compatible.
466  "PtrVector: incompatible types");
467  updateCore(p.refCore());
468  return ptrs_.insert(position, p);
469 }
const char * p
Definition: xmltok.h:285
const XML_Char int const XML_Char * value
Definition: expat.h:331
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
template<typename T>
template<typename InputIterator >
auto art::PtrVector< T >::insert ( PV_INSERT_POSITION_TYPE  position,
InputIterator  first,
InputIterator  last 
) -> iterator
inline

Definition at line 487 of file PtrVector.h.

References distance(), makeBrightnessMap::position, art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), fillBadChanDBTables::result, and art::PtrVectorBase::updateCore().

490 {
491  std::for_each(
492  first, last, [this](Ptr<T> const& p) { updateCore(p.refCore()); });
493 #if GCC_IS_AT_LEAST(4, 9, 0) || CLANG_IS_AT_LEAST(3, 5, 0)
494  // C++2011.
495  return ptrs_.insert(position, first, last);
496 #else
497  // Inefficient with C++03 interface.
498  auto const orig_dist = std::distance(ptrs_.begin(), position);
499  ptrs_.insert(position, first, last);
500  iterator result = ptrs_.begin();
501  std::advance(result, orig_dist);
502  return result;
503 #endif
504 }
const char * p
Definition: xmltok.h:285
unsigned distance(const T &t1, const T &t2)
data_t::iterator iterator
Definition: PtrVector.h:60
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
bool art::PtrVectorBase::isAvailable ( ) const
inlineinherited

Definition at line 78 of file PtrVectorBase.h.

79 {
80  return core_.isAvailable();
81 }
bool isAvailable() const
bool art::PtrVectorBase::isNonnull ( ) const
inlineinherited

Definition at line 66 of file PtrVectorBase.h.

67 {
68  return core_.isNonnull();
69 }
bool isNonnull() const
Definition: RefCore.h:76
bool art::PtrVectorBase::isNull ( ) const
inlineinherited

Definition at line 72 of file PtrVectorBase.h.

73 {
74  return !isNonnull();
75 }
bool isNonnull() const
Definition: PtrVectorBase.h:66
template<typename T >
art::Ptr<T>::key_type art::PtrVectorBase::key ( Ptr< T > const &  ptr) const
inlineinherited

Definition at line 123 of file PtrVectorBase.h.

References art::Ptr< T >::key().

124 {
125  return ptr.key();
126 }
template<typename T >
auto art::PtrVector< T >::max_size ( ) const
inline

Definition at line 315 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

316 {
317  return ptrs_.max_size();
318 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T>
template<typename U >
PtrVector<T>& art::PtrVector< T >::operator= ( std::initializer_list< Ptr< U >>  il)
template<typename T>
template<typename U >
PtrVector<T>& art::PtrVector< T >::operator= ( PtrVector< U > const &  other)
template<typename T>
template<typename U >
art::PtrVector<T>& art::PtrVector< T >::operator= ( std::initializer_list< Ptr< U >>  il)
inline

Definition at line 198 of file PtrVector.h.

References art::PtrVector< T >::assign().

199 {
202  "PtrVector: incompatible types");
203  assign(il);
204  return *this;
205 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
void assign(size_type n, Ptr< U > const &p)
Definition: PtrVector.h:409
template<typename T>
template<typename U >
art::PtrVector<T>& art::PtrVector< T >::operator= ( PtrVector< U > const &  other)
inline

Definition at line 210 of file PtrVector.h.

References fhicl::other, and art::PtrVector< T >::ptrs_.

211 {
213  "PtrVector: incompatible types");
214  this->PtrVectorBase::operator=(other);
215  ptrs_.clear();
216  std::copy(other.cbegin(), other.cend(), std::back_inserter(ptrs_));
217  return *this;
218 }
const XML_Char int const XML_Char * value
Definition: expat.h:331
data_t ptrs_
Definition: PtrVector.h:155
bool art::PtrVectorBase::operator== ( PtrVectorBase const &  other) const
inlineprotectedinherited

Definition at line 129 of file PtrVectorBase.h.

References art::PtrVectorBase::core_.

Referenced by art::PtrVector< T >::operator==().

130 {
131  return core_ == other.core_;
132 }
template<typename T >
bool art::PtrVector< T >::operator== ( PtrVector< T > const &  other) const
inline

Definition at line 545 of file PtrVector.h.

References art::PtrVectorBase::operator==(), and art::PtrVector< T >::ptrs_.

546 {
547  return ptrs_ == other.ptrs_ && this->PtrVectorBase::operator==(other);
548 }
bool operator==(PtrVectorBase const &) const
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
art::Ptr< T > const & art::PtrVector< T >::operator[] ( unsigned long const  idx) const
inline

Definition at line 357 of file PtrVector.h.

References art::PtrVector< T >::begin(), and compare_h5_caf::idx.

359 {
360  return *(begin() + idx);
361 }
iterator begin()
Definition: PtrVector.h:223
template<typename T >
void art::PtrVector< T >::pop_back ( )
inline

Definition at line 453 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

454 {
455  ptrs_.pop_back();
456 }
data_t ptrs_
Definition: PtrVector.h:155
art::EDProductGetter const * art::PtrVectorBase::productGetter ( ) const
inlineinherited

Definition at line 90 of file PtrVectorBase.h.

Referenced by art::PtrVector< T >::fill_from_offsets().

91 {
92  return core_.productGetter();
93 }
EDProductGetter const * productGetter() const
Definition: RefCore.h:105
template<typename T >
template<typename U >
void art::PtrVector< T >::push_back ( Ptr< U > const &  p)
inline

Definition at line 441 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, art::Ptr< T >::refCore(), and art::PtrVectorBase::updateCore().

Referenced by rb::Cluster::Add(), caf::CAFMaker::AddMCTruthToVec(), rb::Cluster::AllCells(), dt::Chain::AllHits(), dt::Cand::AllHits(), qeef::QeFinderVal::analyze(), validation::ValidateDAQ2RawDigit::analyze(), remid::ReMIdValidate::analyze(), mcchk::CloseInTime::analyze(), tut::RecoValidationTutorial::analyze(), remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), murem::MuonRemoveAna::analyze(), comi::DataCheck::analyze(), calib::HitEfficiency::analyze(), bpfit::BPFEnergyAna::analyze(), remid::ReMIdDedx::analyze(), tbem::TBRecoAna::analyze(), trk::KalmanTrackAna::analyze(), showere::ShowerEnergyAna::analyze(), cvn::CVNEventDump::analyze(), cvn::CVNCosmicEventDump::analyze(), earms::ElasticArmsValidate::analyze(), bpfit::BreakPointAna::analyze(), cvn::CVNEventProngDump::analyze(), slicer::SlicerAna::analyze(), ncid::NCNNKerasVal::analyze(), remid::ReMIdDedxRock::analyze(), ncpi0::TwoProngBDTAna::analyze(), fuzz::FuzzyKValidate::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), bpfit::BPFTmvaTrainer::analyze(), bpf::BPFCVNAna::analyze(), bpfit::BreakPointProtonAna::analyze(), ncs::Xbeam::analyze(), air::AirKalmanAna::analyze(), ncs::GenieTruth::analyze(), ncs::Xeff::analyze(), slid::LIDTraining::analyze(), ncs::NCAna::analyze(), upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), chaninfo::BadChanList::Apply(), cheat::CheckBackTracking::CheckPurityAndEfficiency(), bpfit::dEdxCalculator::computeDEDX(), skim::SkimmingUtils::CopyProngs(), skim::SkimmingUtils::CopyShowers(), skim::SkimmingUtils::CopySlice(), skim::SkimmingUtils::CopyTracks(), art::View< T >::fill(), novaddt::DDTTrackMerge::filter(), novaddt::HoughTracker::filter(), chaninfo::FindSwappedChannels::filter(), novaddt::Merge2DTracks::filter(), mono::MonopoleCluster::find_isolated_hits(), fuzz::FuzzyKVertex::FindOrphanedHits(), nerd::NERDProng::FindOrphanedHits(), bpfit::DimuonFitter::FindSlices(), bpfit::BreakPoint::FindSlices(), tut::TutProducer::FitPhoton(), bpfit::dEdxCalculator::getCellHits(), evd::RawDataDrawer::GetRawTrigger(), cvn::HitClassify(), cvn::HitNuIndex(), cvn::HitObject(), dt::Chunk::HitsOnLine(), novaddt::HorizontalMuonAna::IsHorzMuonTrack(), dt::View::MakeChunkCombos(), evtsum::EventSummary::MakeOutput(), trk::CosmicTrackAlg::MakeTrack(), evd::SliceNavigator::postProcessEvent(), cvntf::CVNTF::produce(), util::TruthExpand::produce(), cheat::ClusterCheater::produce(), cheat::ShowerCheater::produce(), cheat::ProngCheater::produce(), cheat::TrackCheater::produce(), trk::KalmanTrack::produce(), demo::DemoModule::produce(), trk::KalmanTrackMerge::produce(), regcvntf::RegCVNTF::produce(), novaddt::TrackFit::produce(), jmshower::JMTrackMerge::produce(), nuonecvntf::NuonECVNTF::produce(), cvneventtf::CVNEventTF::produce(), cvnprongtf::CVNProngTF::produce(), slid::SliceLIDBuilder::produce(), dt::ViewMerger::produce(), dt::DiscreteTracker::produce(), photrans::PhotonTransport::produce(), jmshower::JMClusterMerge::produce(), cvn::CVNMapper::produce(), slid::LIDBuilder::produce(), cvntf::CVNProngEvaluatorTF::produce(), cvn::RegCVNMapper::produce(), slid::SPIDBuilder::produce(), bpfit::BPFEnergyEstimator::produce(), ncid::MakeNCCosRej::produce(), bpfit::BPFPIdMaker::produce(), bpfit::BPFEnergyEstimatorOnly::produce(), remid::RecoMuon::produce(), murem::MergeDigits::produce(), cvn::CVNAddTrainingData::produce(), upmuana::UpMuProb::produce(), murem::MuonRemove::produce(), murem::FindMREParent::produce(), murem::FindParent::produce(), fuzz::FuzzyKVertex::produce(), caf::CAFMaker::produce(), jmshower::RecoJMShower::RecoShowers(), hough::MultiHoughT::Scrub(), earms::ElasticArmsHS::Scrub(), vdt::VertexDT::Scrub(), fuzz::FuzzyKVertex::Scrub(), and skim::SkimmingUtils::SliceMCTruthAssociation().

442 {
443  // Ensure that types are compatible.
446  "PtrVector: incompatible types");
447  updateCore(p.refCore());
448  ptrs_.push_back(p);
449 }
const char * p
Definition: xmltok.h:285
const XML_Char int const XML_Char * value
Definition: expat.h:331
data_t ptrs_
Definition: PtrVector.h:155
void updateCore(RefCore const &core)
template<typename T >
auto art::PtrVector< T >::rbegin ( )
inline

Definition at line 251 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

252 {
253  return ptrs_.rbegin();
254 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::rbegin ( ) const
inline

Definition at line 258 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

259 {
260  return ptrs_.rbegin();
261 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::rend ( )
inline

Definition at line 265 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

266 {
267  return ptrs_.rend();
268 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::rend ( ) const
inline

Definition at line 272 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

273 {
274  return ptrs_.rend();
275 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::reserve ( size_type  n)
inline

Definition at line 343 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by art::PtrRemapper::operator()(), and trk::KalmanTrack::produce().

344 {
345  ptrs_.reserve(n);
346 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::resize ( size_type  n)
inline

Definition at line 322 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

323 {
324  ptrs_.resize(n);
325 }
data_t ptrs_
Definition: PtrVector.h:155
void art::PtrVectorBase::setProductGetter ( EDProductGetter g) const
inlineinherited

Definition at line 96 of file PtrVectorBase.h.

97 {
99 }
void setProductGetter(EDProductGetter const *prodGetter) const
Definition: RefCore.h:117
template<typename T >
void art::PtrVector< T >::shrink_to_fit ( )
inline

Definition at line 350 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

351 {
352  ptrs_.shrink_to_fit();
353 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
auto art::PtrVector< T >::size ( void  ) const
inline

Definition at line 308 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

Referenced by rb::HitMap::Add(), rb::Cluster::Add(), rb::Cluster::AllCells(), dt::Chain::AllHits(), dt::Cand::AllHits(), validation::ValidateDAQ2RawDigit::analyze(), remid::ReMIdValidate::analyze(), mcchk::CloseInTime::analyze(), tut::RecoValidationTutorial::analyze(), remid::ReMIdTrain::analyze(), numue::NumuEAna::analyze(), murem::MuonRemoveAna::analyze(), slicer::IdenticalSlicerAna::analyze(), comi::DataCheck::analyze(), calib::HitEfficiency::analyze(), validation::NoiseClusterAnalysis::analyze(), remid::ReMIdDedx::analyze(), tbem::TBRecoAna::analyze(), trk::KalmanTrackAna::analyze(), earms::ElasticArmsValidate::analyze(), remid::ReMIdDedxRock::analyze(), ncpi0::TwoProngBDTAna::analyze(), fuzz::FuzzyKValidate::analyze(), remid::ReMIdDedxFD::analyze(), remid::ReMIdDedxStudies::analyze(), bpfit::BreakPointProtonAna::analyze(), air::AirKalmanAna::analyze(), slid::LIDTraining::analyze(), upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), chaninfo::BadChanList::Apply(), trk::KalmanTrackAna::CheckAssociations(), air::AirKalmanAna::CheckAssociations(), dt::Cand::ClosestToEndCell(), rb::Cluster::Cluster(), bpfit::dEdxCalculator::computeDEDX(), skim::SkimmingUtils::CopyProngs(), skim::SkimmingUtils::CopyShowers(), skim::SkimmingUtils::CopyTracks(), rb::Cluster::EnsureWeightAlloc(), caf::FillParticleTruth(), chaninfo::FindSwappedChannels::filter(), fuzz::FuzzyKVertex::FindOrphanedHits(), nerd::NERDProng::FindOrphanedHits(), bpfit::DimuonFitter::FindSlices(), trk::KalmanTrackAna::FindVisibleProngs(), cheat::RecoCheckAna::FindVisibleProngs(), fuzz::FuzzyKValidate::FindVisibleProngs3D(), fuzz::FuzzyKVertex::FindVisibleProngs3D(), cosrej::CosRejFxs::getActivity(), numusand::NumuSandFxs::getActivityVtx(), nuesand::FillNueSandbox::GetdEdx(), slid::NuEEnergyAlg::GetHitShowerMap(), nnbar::NNbarUtilities::getMultipleCellFraction(), nuesand::FillNueSandbox::GetPlaneEnergy(), ndreco::NDRecoFxs::getProngActivity(), ndreco::NDRecoFxs::getProngDedx(), evd::RawDataDrawer::GetRawTrigger(), nnbar::NNbarUtilities::getSliceBoundary(), nnbar::NNbarUtilities::getSliceTimeWindow(), ndreco::NDRecoFxs::getTrackActivity(), ndreco::NDRecoFxs::getTrackDedx(), nnbar::NNbarUtilities::getXyAsymmetry(), dt::Chunk::HitsOnLine(), rb::Cluster::Is3D(), nnbar::NNbarUtilities::isFebFlasher(), novaddt::HorizontalMuonAna::IsHorzMuonTrack(), evtsum::EventSummary::MakeOutput(), trk::CosmicTrackAlg::MakeTrack(), numue::NumuEAlg::MakeVertexCluster(), zcl::SMMCluster::MissC(), dq::FlasherFinder::Nflash(), rb::Cluster::NXCell(), rb::Cluster::NYCell(), art::PtrRemapper::operator()(), dt::Cand::operator<(), cheat::BackTracker::PassMuonCuts(), cvntf::CVNTF::produce(), trk::TrkAssn::produce(), cheat::ClusterCheater::produce(), trk::KalmanTrack::produce(), demo::DemoModule::produce(), trk::KalmanTrackMerge::produce(), regcvntf::RegCVNTF::produce(), numusand::FillSandbox::produce(), nuonecvntf::NuonECVNTF::produce(), cvnprongtf::CVNProngTF::produce(), slid::SliceLIDBuilder::produce(), cvneventtf::CVNEventTF::produce(), cosrej::CosRej::produce(), dt::ViewMerger::produce(), zcl::SMMCluster::produce(), jmshower::JMClusterMerge::produce(), zcl::FMMTracker::produce(), cvn::CVNMapper::produce(), slid::LIDBuilder::produce(), cvn::RegCVNMapper::produce(), slid::SPIDBuilder::produce(), remid::RecoMuon::produce(), murem::MergeDigits::produce(), upmuana::UpMuProb::produce(), murem::MuonRemove::produce(), murem::FindMREParent::produce(), bpfit::DimuonFitter::produce(), bpfit::BreakPoint::produce(), art::PtrVector< T >::PtrVector(), caf::PtrVecToVec(), cheat::BackTracker::PtrVecToVecRawPtr(), dt::DiscreteTracker::RecoDiscrete(), jmshower::RecoJMShower::RecoShowers(), hough::MultiHoughT::Scrub(), earms::ElasticArmsHS::Scrub(), vdt::VertexDT::Scrub(), fuzz::FuzzyKVertex::Scrub(), rb::Cluster::SetWeight(), skim::NumuCCpiSkimmer::Skim(), skim::NumuSkimmer::Skim(), cosrej::MakeNueCosRej::SparsenessAsymmetry(), zcl::FMMTracker::Tracking2D(), dt::Chain::TrimEnds(), slid::NuEEnergyAlg::VertexEnergy(), dt::View::View(), moonshadowana::MoonShadowAna::WriteHitListInfo(), moonshadowana::MoonShadowAnaHough::WriteHitListInfo(), rb::Cluster::XCell(), and rb::Cluster::YCell().

309 {
310  return ptrs_.size();
311 }
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::sort ( )
inline

Definition at line 552 of file PtrVector.h.

Referenced by trk::WindowTrackingAlg::MakeTrack().

553 {
554  sort(std::less<T>());
555 }
template<typename T >
template<class COMP >
void art::PtrVector< T >::sort ( COMP  comp)
inline

Definition at line 560 of file PtrVector.h.

References art::PtrVector< T >::ptrs_.

561 {
562  std::sort(ptrs_.begin(), ptrs_.end(), ComparePtrs<COMP>(comp));
563 }
data_t ptrs_
Definition: PtrVector.h:155
void art::PtrVectorBase::swap ( PtrVectorBase other)
inlineprotectedinherited

Definition at line 116 of file PtrVectorBase.h.

References art::PtrVectorBase::core_.

Referenced by art::PtrVector< T >::swap().

117 {
118  core_.swap(other.core_);
119 }
void swap(RefCore &other)
Definition: RefCore.h:123
template<typename T >
void art::PtrVector< T >::swap ( PtrVector< T > &  other)
inline

Definition at line 522 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, and art::PtrVectorBase::swap().

Referenced by chaninfo::BadChanList::Apply(), evd::RawDataDrawer::GetRawTrigger(), and art::swap().

523 {
524  ptrs_.swap(other.ptrs_);
526 }
void swap(PtrVectorBase &)
data_t ptrs_
Definition: PtrVector.h:155
template<typename T >
void art::PtrVector< T >::swap ( key_type  k1,
key_type  k2 
)
inline

Definition at line 530 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, and std::swap().

531 {
532  std::swap(ptrs_[k1], ptrs_[k2]);
533 }
void swap(art::HLTGlobalStatus &lhs, art::HLTGlobalStatus &rhs)
data_t ptrs_
Definition: PtrVector.h:155
void art::PtrVectorBase::updateCore ( RefCore const &  core)
protectedinherited
template<typename T >
void art::PtrVector< T >::zeroTransients ( )
inlineoverrideprivatevirtual

Implements art::PtrVectorBase.

Definition at line 591 of file PtrVector.h.

References art::PtrVector< T >::ptrs_, and tmp.

592 {
593  data_t tmp;
594  ptrs_.swap(tmp);
595 }
std::vector< Ptr< T > > data_t
Definition: PtrVector.h:51
Float_t tmp
Definition: plot.C:36
data_t ptrs_
Definition: PtrVector.h:155

Member Data Documentation

template<typename T>
data_t art::PtrVector< T >::ptrs_
mutableprivate

The documentation for this class was generated from the following files: