CMS 3D CMS Logo

Public Member Functions | Private Attributes

BasicReferenceCounted Class Reference

#include <ReferenceCounted.h>

Inheritance diagram for BasicReferenceCounted:
NavSurface Surface NavCone NavCylinder NavPlane BoundSurface Cone Cylinder Plane BoundCylinder BoundPlane BoundCylinder BoundaryPlane BoundPlane TangentPlane BoundDisk BoundDiskSector BoundDisk BoundDiskSector

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().