LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "FindOne.h"
Public Types | |
using | dataColl_t = 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 = Data const * |
using | data_const_reference = Data const & |
using | data_reference = Data & |
using | data_t = Data |
Public Member Functions | |
template<typename Handle , typename DataContainer , typename Tag > | |
FindOne (Handle const &aCollection, DataContainer const &dc, Tag const &tag, std::enable_if_t< detail::is_handle_v< Handle >> *=nullptr) | |
template<typename ProdAColl , typename DataContainer , typename Tag > | |
FindOne (ProdAColl const &view, DataContainer const &dc, Tag const &tag, std::enable_if_t< std::is_pointer_v< typename ProdAColl::value_type >> *=nullptr) | |
template<typename PtrProdAColl , typename DataContainer , typename Tag > | |
FindOne (PtrProdAColl const &aPtrColl, DataContainer const &dc, Tag const &tag, std::enable_if_t< std::is_same_v< typename PtrProdAColl::value_type, art::Ptr< typename PtrProdAColl::value_type::value_type >>> *=nullptr) | |
template<typename ProdA , typename DataContainer , typename Tag > | |
FindOne (std::initializer_list< Ptr< ProdA >> const &ptrs, DataContainer const &dc, Tag const &tag) | |
cet::maybe_ref< Data const > | data (size_type i) const |
void | get (size_type i, cet::maybe_ref< assoc_t const > &item, cet::maybe_ref< Data const > &data) const |
bool | operator== (FindOne< ProdB, Data > const &other) const |
Private Types | |
using | base = FindOne< ProdB, void > |
Private Attributes | |
dataColl_t | dataCollection_ {} |
using art::FindOne< ProdB, Data >::assoc_t = typename base::assoc_t |
|
private |
using art::FindOne< ProdB, Data >::const_reference = typename base::const_reference |
using art::FindOne< ProdB, Data >::data_const_pointer = Data const* |
using art::FindOne< ProdB, Data >::data_const_reference = Data const& |
using art::FindOne< ProdB, Data >::data_reference = Data& |
using art::FindOne< ProdB, Data >::data_t = Data |
using art::FindOne< ProdB, Data >::dataColl_t = std::vector<Data const*> |
using art::FindOne< ProdB, Data >::difference_type = typename base::difference_type |
using art::FindOne< ProdB, Data >::reference = typename base::reference |
using art::FindOne< ProdB, Data >::size_type = typename base::size_type |
using art::FindOne< ProdB, Data >::value_type = typename base::value_type |
art::FindOne< ProdB, Data >::FindOne | ( | Handle const & | aCollection, |
DataContainer const & | dc, | ||
Tag const & | tag, | ||
std::enable_if_t< detail::is_handle_v< Handle >> * | = nullptr |
||
) |
Definition at line 432 of file FindOne.h.
References art::FindOne< ProdB, void >::bCollection(), art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::setStoredException().
art::FindOne< ProdB, Data >::FindOne | ( | ProdAColl const & | view, |
DataContainer const & | dc, | ||
Tag const & | tag, | ||
std::enable_if_t< std::is_pointer_v< typename ProdAColl::value_type >> * | = nullptr |
||
) |
Definition at line 447 of file FindOne.h.
References art::FindOne< ProdB, void >::bCollection(), art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::setStoredException().
art::FindOne< ProdB, Data >::FindOne | ( | PtrProdAColl const & | aPtrColl, |
DataContainer const & | dc, | ||
Tag const & | tag, | ||
std::enable_if_t< std::is_same_v< typename PtrProdAColl::value_type, art::Ptr< typename PtrProdAColl::value_type::value_type >>> * | = nullptr |
||
) |
Definition at line 462 of file FindOne.h.
References art::FindOne< ProdB, void >::bCollection(), art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::setStoredException().
art::FindOne< ProdB, Data >::FindOne | ( | std::initializer_list< Ptr< ProdA >> const & | ptrs, |
DataContainer const & | dc, | ||
Tag const & | tag | ||
) |
Definition at line 479 of file FindOne.h.
References art::FindOne< ProdB, void >::bCollection(), art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::setStoredException().
|
inline |
Definition at line 491 of file FindOne.h.
References art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::throwIfInvalid().
|
inline |
Definition at line 499 of file FindOne.h.
References art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::get().
Referenced by art::FindOne< ProdB, void >::isValid().
|
inline |
Definition at line 513 of file FindOne.h.
References art::FindOne< ProdB, Data >::dataCollection_, and art::FindOne< ProdB, void >::operator==().
|
private |
Definition at line 286 of file FindOne.h.
Referenced by art::FindOne< ProdB, Data >::data(), art::FindOne< ProdB, Data >::FindOne(), art::FindOne< ProdB, Data >::get(), and art::FindOne< ProdB, Data >::operator==().