LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "Handle.h"
Classes | |
class | HandleTag |
Public Types | |
using | element_type = T |
Public Member Functions | |
~ValidHandle ()=default | |
ValidHandle ()=delete | |
ValidHandle (T const *prod, EDProductGetter const *productGetter, Provenance prov) | |
ValidHandle (ValidHandle const &)=default | |
ValidHandle (ValidHandle &&)=default | |
ValidHandle & | operator= (ValidHandle const &)&=default |
ValidHandle & | operator= (ValidHandle &&)&=default |
operator T const * () const | |
T const & | operator* () const |
T const * | operator-> () const |
T const * | product () const |
bool | isValid () const |
bool | failedToGet () const |
Provenance const * | provenance () const |
ProductID | id () const |
std::shared_ptr< art::Exception const > | whyFailed () const |
EDProductGetter const * | productGetter () const noexcept |
void | swap (ValidHandle< T > &other) |
Private Attributes | |
T const * | prod_ |
EDProductGetter const * | productGetter_ |
Provenance | prov_ |
using art::ValidHandle< T >::element_type = T |
|
default |
|
delete |
|
explicit |
Definition at line 330 of file Handle.h.
References art::errors::NullPointerError, art::ValidHandle< T >::prod_, art::ValidHandle< T >::productGetter(), art::ValidHandle< T >::productGetter_, and art::ValidHandle< T >::prov_.
|
default |
|
default |
|
inline |
|
inline |
Definition at line 391 of file Handle.h.
References art::Provenance::productID(), and art::ValidHandle< T >::prov_.
|
inline |
|
inline |
Definition at line 342 of file Handle.h.
References art::ValidHandle< T >::prod_.
|
inline |
Definition at line 349 of file Handle.h.
References art::ValidHandle< T >::prod_.
|
inline |
Definition at line 356 of file Handle.h.
References art::ValidHandle< T >::prod_.
|
default |
|
default |
|
inline |
Definition at line 363 of file Handle.h.
References art::ValidHandle< T >::prod_.
Referenced by sim::DumpMCTruth::analyze(), sim::DumpGTruth::analyze(), and art::ProductRetriever::getValidHandle().
|
inlinenoexcept |
Definition at line 412 of file Handle.h.
References art::disjoint_ranges(), art::overlapping_ranges(), art::ValidHandle< T >::productGetter_, art::range_of_validity(), art::same_ranges(), and art::detail::throw_if_invalid().
Referenced by art::ValidHandle< T >::ValidHandle().
|
inline |
Definition at line 384 of file Handle.h.
References art::ValidHandle< T >::prov_.
|
inline |
Definition at line 405 of file Handle.h.
References art::swap().
|
inline |
|
private |
Definition at line 324 of file Handle.h.
Referenced by art::ValidHandle< T >::operator T const *(), art::ValidHandle< T >::operator*(), art::ValidHandle< T >::operator->(), art::ValidHandle< T >::product(), and art::ValidHandle< T >::ValidHandle().
|
private |
Definition at line 325 of file Handle.h.
Referenced by art::ValidHandle< T >::productGetter(), and art::ValidHandle< T >::ValidHandle().
|
private |
Definition at line 326 of file Handle.h.
Referenced by art::ValidHandle< T >::id(), art::ValidHandle< T >::provenance(), and art::ValidHandle< T >::ValidHandle().