CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edm::one::impl::SharedResourcesUser< T > Class Template Reference

#include <implementors.h>

Inheritance diagram for edm::one::impl::SharedResourcesUser< T >:

Public Member Functions

SharedResourcesUseroperator= (SharedResourcesUser const &)=delete
 
template<typename... Args>
 SharedResourcesUser (Args...args)
 
 SharedResourcesUser (SharedResourcesUser const &)=delete
 
 ~SharedResourcesUser () override
 

Protected Member Functions

void usesResource (std::string const &iName)
 
void usesResource ()
 

Private Member Functions

SharedResourcesAcquirer createAcquirer () override
 

Private Attributes

std::set< std::string > resourceNames_
 

Detailed Description

template<typename T>
class edm::one::impl::SharedResourcesUser< T >

Definition at line 55 of file implementors.h.

Constructor & Destructor Documentation

template<typename T >
template<typename... Args>
edm::one::impl::SharedResourcesUser< T >::SharedResourcesUser ( Args...  args)
inline

Definition at line 58 of file implementors.h.

58 : T(args...) {}
long double T
template<typename T >
edm::one::impl::SharedResourcesUser< T >::SharedResourcesUser ( SharedResourcesUser< T > const &  )
delete
template<typename T >
edm::one::impl::SharedResourcesUser< T >::~SharedResourcesUser ( )
inlineoverride

Definition at line 62 of file implementors.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

62 {}

Member Function Documentation

template<typename T >
SharedResourcesAcquirer edm::one::impl::SharedResourcesUser< T >::createAcquirer ( )
overrideprivate

Definition at line 44 of file implementorsMethods.h.

References edm::SharedResourcesRegistry::createAcquirer(), edm::SharedResourcesRegistry::instance(), and findQualityFiles::v.

44  {
45  std::vector<std::string> v(resourceNames_.begin(), resourceNames_.end());
47  }
SharedResourcesAcquirer createAcquirer(std::vector< std::string > const &) const
static SharedResourcesRegistry * instance()
std::set< std::string > resourceNames_
Definition: implementors.h:70
template<typename T >
SharedResourcesUser& edm::one::impl::SharedResourcesUser< T >::operator= ( SharedResourcesUser< T > const &  )
delete
template<typename T >
void edm::one::impl::SharedResourcesUser< T >::usesResource ( std::string const &  iName)
protected

Definition at line 34 of file implementorsMethods.h.

References edm::SharedResourcesRegistry::instance(), and edm::SharedResourcesRegistry::registerSharedResource().

34  {
35  resourceNames_.insert(iName);
37  }
static SharedResourcesRegistry * instance()
void registerSharedResource(const std::string &)
A resource name must be registered before it can be used in the createAcquirer call.
std::set< std::string > resourceNames_
Definition: implementors.h:70
template<typename T >
void edm::one::impl::SharedResourcesUser< T >::usesResource ( )
protected

Definition at line 39 of file implementorsMethods.h.

References edm::SharedResourcesRegistry::kLegacyModuleResourceName.

39  {
41  }
static const std::string kLegacyModuleResourceName
All legacy modules share this resource.

Member Data Documentation

template<typename T >
std::set<std::string> edm::one::impl::SharedResourcesUser< T >::resourceNames_
private

Definition at line 70 of file implementors.h.