Public Member Functions | Private Attributes | List of all members
art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE > Class Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Services/Registry/ServiceHandle.h"

Public Member Functions

 ServiceHandle (ScheduleID const sID)
 
Toperator-> () const
 
Toperator* () const
 
Tget () const
 

Private Attributes

Tinstance
 

Detailed Description

template<typename T>
class art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >

Definition at line 81 of file ServiceHandle.h.

Constructor & Destructor Documentation

template<typename T >
art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::ServiceHandle ( ScheduleID const  sID)
inlineexplicit

Definition at line 88 of file ServiceHandle.h.

References art::ServiceRegistry::get(), art::ServiceRegistry::instance(), art::errors::ServiceNotFound, and submit_syst::x.

88  : instance {
89  &ServiceRegistry::instance().get<std::remove_const_t<T>>(sID)
90  }
91  {}
92  catch (art::Exception const& x)
93  {
95  << "Unable to create ServiceHandle.\n"
96  << "Perhaps the FHiCL configuration does not specify the necessary "
97  "service?\n"
98  << "The class of the service is noted below...\n"
99  << x;
100  }
static ServiceRegistry & instance()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66

Member Function Documentation

template<typename T >
T* art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::get ( ) const
inline
template<typename T >
T& art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::operator* ( ) const
inline
template<typename T >
T* art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::operator-> ( ) const
inline

Member Data Documentation

template<typename T >
T* art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::instance
private

Definition at line 111 of file ServiceHandle.h.


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