LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ServiceScope.h
Go to the documentation of this file.
1 #ifndef art_Framework_Services_Registry_ServiceScope_h
2 #define art_Framework_Services_Registry_ServiceScope_h
3 // vim: set sw=2 expandtab :
4 
5 namespace art {
6 
7  enum class ServiceScope { LEGACY, SHARED };
8 
9  constexpr bool
10  is_legacy(ServiceScope const scope) noexcept
11  {
12  return scope == ServiceScope::LEGACY;
13  }
14  constexpr bool
15  is_shared(ServiceScope const scope) noexcept
16  {
17  return scope == ServiceScope::SHARED;
18  }
19 
20 } // namespace art
21 
22 #endif /* art_Framework_Services_Registry_ServiceScope_h */
23 
24 // Local Variables:
25 // mode: c++
26 // End:
ServiceScope
Definition: ServiceScope.h:7
constexpr bool is_shared(ServiceScope const scope) noexcept
Definition: ServiceScope.h:15
constexpr bool is_legacy(ServiceScope const scope) noexcept
Definition: ServiceScope.h:10
Definition: MVAAlg.h:12