LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "FindOne.h"
Public Types | |
using | assoc_t = ProdB |
using | bColl_t = std::vector< ProdB const * > |
using | value_type = typename bColl_t::value_type |
using | size_type = typename bColl_t::size_type |
using | difference_type = typename bColl_t::difference_type |
using | const_reference = typename bColl_t::const_reference |
using | reference = typename bColl_t::reference |
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) | |
bool | isValid () const |
size_type | size () const |
cet::maybe_ref< assoc_t const > | at (size_type i) const |
void | get (size_type i, cet::maybe_ref< assoc_t const > &item) const |
bool | operator== (FindOne< ProdB, void > const &other) const |
Protected Member Functions | |
FindOne ()=default | |
bColl_t & | bCollection () |
void | setStoredException (std::shared_ptr< art::Exception const > &&e) |
void | throwIfInvalid () const |
Private Attributes | |
bColl_t | bCollection_ {} |
std::shared_ptr< art::Exception const > | storedException_ {} |
using art::FindOne< ProdB, void >::assoc_t = ProdB |
using art::FindOne< ProdB, void >::bColl_t = std::vector<ProdB const*> |
using art::FindOne< ProdB, void >::const_reference = typename bColl_t::const_reference |
using art::FindOne< ProdB, void >::difference_type = typename bColl_t::difference_type |
using art::FindOne< ProdB, void >::reference = typename bColl_t::reference |
using art::FindOne< ProdB, void >::size_type = typename bColl_t::size_type |
using art::FindOne< ProdB, void >::value_type = typename bColl_t::value_type |
art::FindOne< ProdB, void >::FindOne | ( | Handle const & | aCollection, |
DataContainer const & | dc, | ||
Tag const & | tag, | ||
std::enable_if_t< detail::is_handle_v< Handle >> * | = nullptr |
||
) |
Definition at line 293 of file FindOne.h.
art::FindOne< ProdB, void >::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 307 of file FindOne.h.
art::FindOne< ProdB, void >::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 322 of file FindOne.h.
art::FindOne< ProdB, void >::FindOne | ( | std::initializer_list< Ptr< ProdA >> const & | ptrs, |
DataContainer const & | dc, | ||
Tag const & | tag | ||
) |
Definition at line 338 of file FindOne.h.
|
protecteddefault |
|
inline |
|
inlineprotected |
Definition at line 207 of file FindOne.h.
References e.
Referenced by art::FindOne< ProdB, Data >::FindOne().
|
inline |
|
inline |
Definition at line 358 of file FindOne.h.
References art::FindOne< ProdB, Data >::get().
|
inline |
Definition at line 401 of file FindOne.h.
References bCollection_.
Referenced by art::FindOne< ProdB, Data >::operator==().
|
inlineprotected |
Definition at line 410 of file FindOne.h.
References e.
Referenced by art::FindOne< ProdB, Data >::FindOne().
|
inline |
|
inlineprotected |
Definition at line 418 of file FindOne.h.
References art::errors::LogicError.
Referenced by art::FindOne< ProdB, Data >::data().
|
private |
Definition at line 213 of file FindOne.h.
Referenced by operator==().
|
private |