CMS 3D CMS Logo

Public Member Functions | Private Attributes

BasicReferenceCounted Class Reference

#include <ReferenceCounted.h>

Inheritance diagram for BasicReferenceCounted:
NavSurface Surface GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > BoundSurface Cone Cylinder Plane BoundPlane GCC11_FINAL< T > GCC11_FINAL< T > BoundaryPlane BoundPlane GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T >

List of all members.

Public Member Functions

void addReference () const
 BasicReferenceCounted ()
 BasicReferenceCounted (const BasicReferenceCounted &iRHS)
const BasicReferenceCountedoperator= (const BasicReferenceCounted &)
unsigned int references () const
void removeReference () const
virtual ~BasicReferenceCounted ()

Private Attributes

unsigned int referenceCount_

Detailed Description

Definition at line 29 of file ReferenceCounted.h.


Constructor & Destructor Documentation

BasicReferenceCounted::BasicReferenceCounted ( ) [inline]

Definition at line 33 of file ReferenceCounted.h.

BasicReferenceCounted::BasicReferenceCounted ( const BasicReferenceCounted iRHS) [inline]

Definition at line 34 of file ReferenceCounted.h.

virtual BasicReferenceCounted::~BasicReferenceCounted ( ) [inline, virtual]

Definition at line 39 of file ReferenceCounted.h.

{}

Member Function Documentation

void BasicReferenceCounted::addReference ( ) const [inline]

Definition at line 43 of file ReferenceCounted.h.

References referenceCount_.

Referenced by PixelTrackBuilder::build(), and intrusive_ptr_add_ref().

const BasicReferenceCounted& BasicReferenceCounted::operator= ( const BasicReferenceCounted ) [inline]

Definition at line 36 of file ReferenceCounted.h.

                                                                             {
        return *this;
      }
unsigned int BasicReferenceCounted::references ( ) const [inline]

Definition at line 49 of file ReferenceCounted.h.

References referenceCount_.

{return referenceCount_;}
void BasicReferenceCounted::removeReference ( ) const [inline]

Definition at line 44 of file ReferenceCounted.h.

References referenceCount_.

Referenced by intrusive_ptr_release().

                                   { if( 0 == --referenceCount_ ) {
          delete const_cast<BasicReferenceCounted*>(this);
        }
      }

Member Data Documentation

unsigned int BasicReferenceCounted::referenceCount_ [mutable, private]

Definition at line 58 of file ReferenceCounted.h.

Referenced by addReference(), references(), and removeReference().