Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
art::FindManyP< ProdB, Data > Class Template Reference

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

Public Types

using dataColl_t = std::vector< std::vector< Data const * > >
 
using value_type = typename base::value_type
 
using size_type = typename base::size_type
 
using difference_type = typename base::difference_type
 
using const_reference = typename base::const_reference
 
using reference = typename base::reference
 
using assoc_t = typename base::assoc_t
 
using data_const_pointer = typename dataColl_t::const_pointer
 
using data_const_reference = typename dataColl_t::const_reference
 
using data_reference = typename dataColl_t::reference
 
using data_t = Data
 

Public Member Functions

template<typename Handle , typename DataContainer , typename Tag >
 FindManyP (Handle const &aCollection, DataContainer const &dc, Tag const &tag, std::enable_if_t< detail::is_handle< Handle >::value > *=nullptr)
 
template<typename ProdAColl , typename DataContainer , typename Tag >
 FindManyP (ProdAColl const &view, DataContainer const &dc, Tag const &tag, std::enable_if_t< std::is_pointer< typename ProdAColl::value_type >::value > *=nullptr)
 
template<typename PtrProdAColl , typename DataContainer , typename Tag >
 FindManyP (PtrProdAColl const &aPtrColl, DataContainer const &dc, Tag const &tag, std::enable_if_t< std::is_same< typename PtrProdAColl::value_type, art::Ptr< typename PtrProdAColl::value_type::value_type > >::value > *=nullptr)
 
template<typename ProdA , typename DataContainer , typename Tag >
 FindManyP (std::initializer_list< Ptr< ProdA > > const &ptrs, DataContainer const &dc, Tag const &tag)
 
data_const_reference data (size_type i) const
 
size_type get (size_type i, reference item, data_reference data) const
 
bool operator== (FindManyP< ProdB, Data > const &other) const
 

Private Types

using base = FindManyP< ProdB, void >
 

Private Attributes

dataColl_t dataCollection_ {}
 

Detailed Description

template<typename ProdB, typename Data>
class art::FindManyP< ProdB, Data >

Definition at line 139 of file FindManyP.h.

Member Typedef Documentation

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::assoc_t = typename base::assoc_t

Definition at line 224 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::base = FindManyP<ProdB, void>
private

Definition at line 216 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::const_reference = typename base::const_reference

Definition at line 222 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::data_const_pointer = typename dataColl_t::const_pointer

Definition at line 226 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::data_const_reference = typename dataColl_t::const_reference

Definition at line 227 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::data_reference = typename dataColl_t::reference

Definition at line 228 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::data_t = Data

Definition at line 230 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::dataColl_t = std::vector<std::vector<Data const*> >

Definition at line 218 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::difference_type = typename base::difference_type

Definition at line 221 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::reference = typename base::reference

Definition at line 223 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::size_type = typename base::size_type

Definition at line 220 of file FindManyP.h.

template<typename ProdB, typename Data>
using art::FindManyP< ProdB, Data >::value_type = typename base::value_type

Definition at line 219 of file FindManyP.h.

Constructor & Destructor Documentation

template<typename ProdB , typename Data >
template<typename Handle , typename DataContainer , typename Tag >
art::FindManyP< ProdB, Data >::FindManyP ( Handle const &  aCollection,
DataContainer const &  dc,
Tag const &  tag,
std::enable_if_t< detail::is_handle< Handle >::value > *  = nullptr 
)

Definition at line 406 of file FindManyP.h.

References art::FindManyP< ProdB, void >::bCollection(), art::FindManyP< ProdB, Data >::dataCollection_, art::detail::input_tag(), and art::FindManyP< ProdB, void >::setStoredException().

Referenced by art::FindManyP< ProdB, void >::FindManyP(), art::FindManyP< ProdB, Data >::FindManyP(), and art::FindManyP< ProdB, void >::throwIfInvalid().

410 {
411  using ProdA = typename Handle::element_type::value_type;
412  detail::IPRHelper<ProdA, ProdB, Data, dataColl_t, DataContainer> finder{dc, detail::input_tag(tag)};
414 }
InputTag input_tag(InputTag const &tag)
Definition: IPRHelper.h:21
dataColl_t dataCollection_
Definition: FindManyP.h:270
void setStoredException(std::shared_ptr< art::Exception const > &&e)
Definition: FindManyP.h:384
template<typename ProdB , typename Data >
template<typename ProdAColl , typename DataContainer , typename Tag >
art::FindManyP< ProdB, Data >::FindManyP ( ProdAColl const &  view,
DataContainer const &  dc,
Tag const &  tag,
std::enable_if_t< std::is_pointer< typename ProdAColl::value_type >::value > *  = nullptr 
)

Definition at line 419 of file FindManyP.h.

References art::FindManyP< ProdB, void >::bCollection(), art::FindManyP< ProdB, Data >::dataCollection_, art::FindManyP< ProdB, Data >::FindManyP(), art::detail::input_tag(), and art::FindManyP< ProdB, void >::setStoredException().

423 {
424  using ProdA = std::remove_const_t<std::remove_pointer_t<typename ProdAColl::value_type>>;
425  detail::IPRHelper<ProdA, ProdB, Data, dataColl_t, DataContainer> finder{dc, detail::input_tag(tag)};
427 }
InputTag input_tag(InputTag const &tag)
Definition: IPRHelper.h:21
dataColl_t dataCollection_
Definition: FindManyP.h:270
void setStoredException(std::shared_ptr< art::Exception const > &&e)
Definition: FindManyP.h:384
template<typename ProdB , typename Data >
template<typename PtrProdAColl , typename DataContainer , typename Tag >
art::FindManyP< ProdB, Data >::FindManyP ( PtrProdAColl const &  aPtrColl,
DataContainer const &  dc,
Tag const &  tag,
std::enable_if_t< std::is_same< typename PtrProdAColl::value_type, art::Ptr< typename PtrProdAColl::value_type::value_type > >::value > *  = nullptr 
)

Definition at line 432 of file FindManyP.h.

References art::FindManyP< ProdB, void >::bCollection(), art::FindManyP< ProdB, Data >::dataCollection_, art::FindManyP< ProdB, Data >::FindManyP(), art::detail::input_tag(), and art::FindManyP< ProdB, void >::setStoredException().

437 {
438  using ProdA = typename PtrProdAColl::value_type::value_type;
439  detail::IPRHelper<ProdA, ProdB, Data, dataColl_t, DataContainer> finder{dc, detail::input_tag(tag)};
441 }
InputTag input_tag(InputTag const &tag)
Definition: IPRHelper.h:21
dataColl_t dataCollection_
Definition: FindManyP.h:270
void setStoredException(std::shared_ptr< art::Exception const > &&e)
Definition: FindManyP.h:384
template<typename ProdB , typename Data >
template<typename ProdA , typename DataContainer , typename Tag >
art::FindManyP< ProdB, Data >::FindManyP ( std::initializer_list< Ptr< ProdA > > const &  ptrs,
DataContainer const &  dc,
Tag const &  tag 
)

Definition at line 446 of file FindManyP.h.

References art::FindManyP< ProdB, void >::bCollection(), art::FindManyP< ProdB, Data >::data(), art::FindManyP< ProdB, Data >::dataCollection_, art::detail::input_tag(), and art::FindManyP< ProdB, void >::setStoredException().

449 {
450  detail::IPRHelper<ProdA, ProdB, Data, dataColl_t, DataContainer> finder{dc, detail::input_tag(tag)};
452 }
InputTag input_tag(InputTag const &tag)
Definition: IPRHelper.h:21
dataColl_t dataCollection_
Definition: FindManyP.h:270
void setStoredException(std::shared_ptr< art::Exception const > &&e)
Definition: FindManyP.h:384

Member Function Documentation

template<typename ProdB , typename Data >
auto art::FindManyP< ProdB, Data >::data ( size_type  i) const
inline
template<typename ProdB , typename Data >
auto art::FindManyP< ProdB, Data >::get ( size_type  i,
reference  item,
data_reference  data 
) const
inline

Definition at line 469 of file FindManyP.h.

References art::FindManyP< ProdB, Data >::dataCollection_, art::FindManyP< ProdB, void >::get(), MECModelEnuComparisons::i, art::FindManyP< ProdB, Data >::operator==(), and fillBadChanDBTables::result.

Referenced by mono::Monopole::analyze(), htk::HoughTrack::analyze(), art::FindManyP< ProdB, void >::at(), skim::NueSkimmer::CopyProngCVN(), art::FindManyP< ProdB, Data >::data(), skim::SkimmerAna::FillNumuHistograms(), fnex::NuMuAnalysisSetup::FillVars(), fnex::NuEAnalysisSetup::FillVars(), mono::MonopoleTrack::filter(), skim::EvaluatorNumuCCpi::Initialize(), skim::EvaluatorNumu::Initialize(), skim::NumuCCpiSkimmer::Skim(), skim::NumuSkimmer::Skim(), and skim::NueSkimmer::Skim().

471 {
472  size_type result = base::get(i, item); // Will check validity.
474  data.insert(data.end(), ref.begin(), ref.end());;
475  return result;
476 }
const XML_Char const XML_Char * data
Definition: expat.h:268
typename base::size_type size_type
Definition: FindManyP.h:220
dataColl_t dataCollection_
Definition: FindManyP.h:270
size_type get(size_type i, reference item) const
Definition: FindManyP.h:361
typename dataColl_t::const_reference data_const_reference
Definition: FindManyP.h:227
template<typename ProdB , typename Data >
bool art::FindManyP< ProdB, Data >::operator== ( FindManyP< ProdB, Data > const &  other) const
inline

Definition at line 482 of file FindManyP.h.

References art::FindManyP< ProdB, Data >::dataCollection_, and art::FindManyP< ProdB, void >::operator==().

Referenced by art::FindManyP< ProdB, void >::get(), and art::FindManyP< ProdB, Data >::get().

483 {
484  return this->base::operator==(other) && // Will check validity.
485  dataCollection_ == other.dataCollection_;
486 }
bool operator==(FindManyP< ProdB, void > const &other) const
Definition: FindManyP.h:374
dataColl_t dataCollection_
Definition: FindManyP.h:270

Member Data Documentation

template<typename ProdB, typename Data>
dataColl_t art::FindManyP< ProdB, Data >::dataCollection_ {}
private

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