LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::ProductToken< T > Class Template Reference

#include "ProductToken.h"

Public Types

using product_type = T
 

Public Member Functions

 ProductToken ()=default
 
 ProductToken (InputTag const &t)
 
InputTag const & inputTag () const
 

Static Public Member Functions

static ProductToken< T > invalid ()
 

Private Attributes

InputTag inputTag_ {}
 

Friends

template<typename ProdA , typename ProdB , typename Data >
struct detail::safe_input_tag
 
std::ostream & operator<< (std::ostream &os, ProductToken const &tok)
 

Detailed Description

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

Definition at line 30 of file ProductToken.h.

Member Typedef Documentation

template<typename T>
using art::ProductToken< T >::product_type = T

Definition at line 43 of file ProductToken.h.

Constructor & Destructor Documentation

template<typename T>
art::ProductToken< T >::ProductToken ( )
explicitdefault
template<typename T>
art::ProductToken< T >::ProductToken ( InputTag const &  t)
inlineexplicit

Definition at line 58 of file ProductToken.h.

58 : inputTag_{t} {}
InputTag inputTag_
Definition: ProductToken.h:77

Member Function Documentation

template<typename T>
InputTag const& art::ProductToken< T >::inputTag ( ) const
inline

Definition at line 61 of file ProductToken.h.

Referenced by art::ProductRetriever::getHandle(), and art::ProductRetriever::getValidHandle().

62  {
63  return inputTag_;
64  }
InputTag inputTag_
Definition: ProductToken.h:77
template<typename T>
static ProductToken<T> art::ProductToken< T >::invalid ( )
inlinestatic

Definition at line 53 of file ProductToken.h.

54  {
55  return ProductToken<T>{};
56  }

Friends And Related Function Documentation

template<typename T>
template<typename ProdA , typename ProdB , typename Data >
friend struct detail::safe_input_tag
friend

Definition at line 68 of file ProductToken.h.

template<typename T>
std::ostream& operator<< ( std::ostream &  os,
ProductToken< T > const &  tok 
)
friend

Definition at line 46 of file ProductToken.h.

47  {
48  os << tok.inputTag_;
49  return os;
50  }

Member Data Documentation

template<typename T>
InputTag art::ProductToken< T >::inputTag_ {}
private

Definition at line 77 of file ProductToken.h.


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