CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::SingleConsumerQ::OperateBuffer< T > Class Template Reference

#include <SingleConsumerQ.h>

Public Member Functions

void * buffer () const
 
void commit (int theSize=0)
 
 OperateBuffer (SingleConsumerQ &b)
 
int size () const
 
 ~OperateBuffer ()
 

Private Attributes

SingleConsumerQb_
 
bool committed_
 
SingleConsumerQ::Buffer v_
 

Detailed Description

template<class T>
class edm::SingleConsumerQ::OperateBuffer< T >

Definition at line 68 of file SingleConsumerQ.h.

Constructor & Destructor Documentation

template<class T >
edm::SingleConsumerQ::OperateBuffer< T >::OperateBuffer ( SingleConsumerQ b)
inlineexplicit

Definition at line 70 of file SingleConsumerQ.h.

70 : b_(b), v_(T::get(b)), committed_(false) {}
double b
Definition: hdecay.h:120
T get(const Candidate &c)
Definition: component.h:55
template<class T >
edm::SingleConsumerQ::OperateBuffer< T >::~OperateBuffer ( )
inline

Member Function Documentation

template<class T >
void* edm::SingleConsumerQ::OperateBuffer< T >::buffer ( ) const
inline
template<class T >
void edm::SingleConsumerQ::OperateBuffer< T >::commit ( int  theSize = 0)
inline

Definition at line 78 of file SingleConsumerQ.h.

Referenced by edm::service::ThreadQueue::consume(), and edm::service::ThreadQueue::produce().

78  {
79  T::commit(b_, v_.ptr_, theSize);
80  committed_ = true;
81  }
template<class T >
int edm::SingleConsumerQ::OperateBuffer< T >::size ( void  ) const
inline

Member Data Documentation

template<class T >
SingleConsumerQ& edm::SingleConsumerQ::OperateBuffer< T >::b_
private

Definition at line 84 of file SingleConsumerQ.h.

template<class T >
bool edm::SingleConsumerQ::OperateBuffer< T >::committed_
private

Definition at line 86 of file SingleConsumerQ.h.

Definition at line 85 of file SingleConsumerQ.h.