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

#include "ProductToken.h"

Public Types

using element_type = Element
 

Public Member Functions

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

Static Public Member Functions

static ViewToken< Element > invalid ()
 

Private Attributes

InputTag inputTag_ {}
 

Friends

std::ostream & operator<< (std::ostream &os, ViewToken const &tok)
 

Detailed Description

template<typename Element>
class art::ViewToken< Element >

Definition at line 33 of file ProductToken.h.

Member Typedef Documentation

template<typename Element>
using art::ViewToken< Element >::element_type = Element

Definition at line 83 of file ProductToken.h.

Constructor & Destructor Documentation

template<typename Element>
art::ViewToken< Element >::ViewToken ( )
explicitdefault
template<typename Element>
art::ViewToken< Element >::ViewToken ( InputTag const &  t)
inlineexplicit

Definition at line 91 of file ProductToken.h.

91 : inputTag_{t} {}
InputTag inputTag_
Definition: ProductToken.h:108

Member Function Documentation

template<typename Element>
InputTag const& art::ViewToken< Element >::inputTag ( ) const
inline

Definition at line 94 of file ProductToken.h.

Referenced by art::ProductRetriever::getView().

95  {
96  return inputTag_;
97  }
InputTag inputTag_
Definition: ProductToken.h:108
template<typename Element>
static ViewToken<Element> art::ViewToken< Element >::invalid ( )
inlinestatic

Definition at line 86 of file ProductToken.h.

87  {
88  return ViewToken<Element>{};
89  }

Friends And Related Function Documentation

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

Definition at line 100 of file ProductToken.h.

101  {
102  os << tok.inputTag_;
103  return os;
104  }

Member Data Documentation

template<typename Element>
InputTag art::ViewToken< Element >::inputTag_ {}
private

Definition at line 108 of file ProductToken.h.


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