Reco::RefCount Class Reference

#include <RefCount.h>

Inheritance diagram for Reco::RefCount:
Reco::StripABC Reco::Strip

List of all members.

Public Member Functions

 RefCount ()
virtual ~RefCount ()
void add_ref ()
void release ()
short use_count () const

Private Attributes

short fCount

Detailed Description

Definition at line 15 of file RefCount.h.


Constructor & Destructor Documentation

RefCount::RefCount (  )  [inline]

Definition at line 32 of file RefCount.h.

00032                              : fCount(0) 
00033    {}

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

Definition at line 35 of file RefCount.h.

00036    {}


Member Function Documentation

void Reco::RefCount::add_ref (  )  [inline]

Definition at line 22 of file RefCount.h.

References fCount.

00022 { ++fCount; }

void Reco::RefCount::release (  )  [inline]

Definition at line 23 of file RefCount.h.

References fCount.

00023 { if ( --fCount == 0 ) delete this; }

short Reco::RefCount::use_count (  )  const [inline]

Definition at line 25 of file RefCount.h.

References fCount.

00025 { return fCount; }


Member Data Documentation

short Reco::RefCount::fCount [private]

Definition at line 29 of file RefCount.h.

Referenced by add_ref(), release(), and use_count().


The documentation for this class was generated from the following file:

Generated on 3 Oct 2018 for loon by  doxygen 1.6.1