CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
edm::SharedResourcesAcquirer Class Reference

#include <SharedResourcesAcquirer.h>

Public Member Functions

size_t numberOfResources () const
 The number returned may be less than the number of resources requested if a resource is only used by one module and therefore is not being shared. More...
 
SharedResourcesAcquireroperator= (const SharedResourcesAcquirer &)=delete
 
SharedResourcesAcquireroperator= (SharedResourcesAcquirer &&)=default
 
SerialTaskQueueChainserialQueueChain () const
 
 SharedResourcesAcquirer ()=default
 
 SharedResourcesAcquirer (std::vector< std::shared_ptr< SerialTaskQueue >> iQueues)
 
 SharedResourcesAcquirer (SharedResourcesAcquirer &&)=default
 
 SharedResourcesAcquirer (const SharedResourcesAcquirer &)=delete
 
 ~SharedResourcesAcquirer ()=default
 

Private Attributes

SerialTaskQueueChain m_queues
 

Friends

class ::testSharedResourcesRegistry
 

Detailed Description

Definition at line 33 of file SharedResourcesAcquirer.h.

Constructor & Destructor Documentation

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( )
default

Referenced by SharedResourcesAcquirer().

edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( std::vector< std::shared_ptr< SerialTaskQueue >>  iQueues)
inlineexplicit

Definition at line 39 of file SharedResourcesAcquirer.h.

References operator=(), SharedResourcesAcquirer(), and ~SharedResourcesAcquirer().

39  :
40  m_queues(std::move(iQueues)){}
def move(src, dest)
Definition: eostools.py:511
edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( SharedResourcesAcquirer &&  )
default
edm::SharedResourcesAcquirer::SharedResourcesAcquirer ( const SharedResourcesAcquirer )
delete
edm::SharedResourcesAcquirer::~SharedResourcesAcquirer ( )
default

Referenced by SharedResourcesAcquirer().

Member Function Documentation

size_t edm::SharedResourcesAcquirer::numberOfResources ( ) const
inline

The number returned may be less than the number of resources requested if a resource is only used by one module and therefore is not being shared.

Definition at line 52 of file SharedResourcesAcquirer.h.

References m_queues, and edm::SerialTaskQueueChain::numberOfQueues().

52 { return m_queues.numberOfQueues();}
std::size_t numberOfQueues() const
SharedResourcesAcquirer& edm::SharedResourcesAcquirer::operator= ( const SharedResourcesAcquirer )
delete

Referenced by SharedResourcesAcquirer().

SharedResourcesAcquirer& edm::SharedResourcesAcquirer::operator= ( SharedResourcesAcquirer &&  )
default
SerialTaskQueueChain& edm::SharedResourcesAcquirer::serialQueueChain ( ) const
inline

Friends And Related Function Documentation

friend class ::testSharedResourcesRegistry
friend

Definition at line 36 of file SharedResourcesAcquirer.h.

Member Data Documentation

SerialTaskQueueChain edm::SharedResourcesAcquirer::m_queues
mutableprivate

Definition at line 58 of file SharedResourcesAcquirer.h.

Referenced by numberOfResources(), and serialQueueChain().