CMS 3D CMS Logo

Private Member Functions | Private Attributes | Friends

cmsutils::_bqueue_item< T > Class Template Reference

#include <bqueue.h>

List of all members.

Private Member Functions

 _bqueue_item ()
 _bqueue_item (boost::intrusive_ptr< _bqueue_item< T > > tail, const T &val)
void addRef ()
void delRef ()

Private Attributes

boost::intrusive_ptr
< _bqueue_item< T > > 
back
size_t refCount
T value

Friends

class _bqueue_itr< T >
class bqueue< T >
void intrusive_ptr_add_ref (_bqueue_item< T > *it)
void intrusive_ptr_release (_bqueue_item< T > *it)

Detailed Description

template<class T>
class cmsutils::_bqueue_item< T >

Definition at line 36 of file bqueue.h.


Constructor & Destructor Documentation

template<class T>
cmsutils::_bqueue_item< T >::_bqueue_item ( ) [inline, private]

Definition at line 44 of file bqueue.h.

: back(0), value(), refCount(0) { }
template<class T>
cmsutils::_bqueue_item< T >::_bqueue_item ( boost::intrusive_ptr< _bqueue_item< T > >  tail,
const T val 
) [inline, private]

Definition at line 45 of file bqueue.h.

: back(tail), value(val), refCount(0) { }

Member Function Documentation

template<class T>
void cmsutils::_bqueue_item< T >::addRef ( ) [inline, private]

Definition at line 41 of file bqueue.h.

References cmsutils::_bqueue_item< T >::refCount.

Referenced by cmsutils::intrusive_ptr_add_ref().

{ ++refCount; }
template<class T>
void cmsutils::_bqueue_item< T >::delRef ( ) [inline, private]

Definition at line 42 of file bqueue.h.

References cmsutils::_bqueue_item< T >::refCount.

Referenced by cmsutils::intrusive_ptr_release().

{ if ((--refCount) == 0) delete this; }

Friends And Related Function Documentation

template<class T>
friend class _bqueue_itr< T > [friend]

Definition at line 38 of file bqueue.h.

template<class T>
friend class bqueue< T > [friend]

Definition at line 37 of file bqueue.h.

template<class T>
void intrusive_ptr_add_ref ( _bqueue_item< T > *  it) [friend]
template<class T>
void intrusive_ptr_release ( _bqueue_item< T > *  it) [friend]

Member Data Documentation

template<class T>
boost::intrusive_ptr< _bqueue_item<T> > cmsutils::_bqueue_item< T >::back [private]

Definition at line 50 of file bqueue.h.

Referenced by cmsutils::_bqueue_itr< T >::operator--().

template<class T>
size_t cmsutils::_bqueue_item< T >::refCount [private]
template<class T>
T cmsutils::_bqueue_item< T >::value [private]