CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Refcount.cc
Go to the documentation of this file.
1 //
2 // $Id: Refcount.cc,v 1.1 2011/05/26 09:47:00 mseidel Exp $
3 //
4 // File: Refcount.cc
5 // Purpose: Reference count implementation.
6 // Created: Aug 2000, sss, from the version that used to be in d0om.
7 //
8 // CMSSW File : src/Refcount.cc
9 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
10 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
11 //
12 
13 
37 
38 
39 namespace hitfit {
40 
41 
43 //
44 // Purpose: Reset the refcount to zero.
45 // This should only be used in the context of a dtor of a derived
46 // class which wants to throw an exception.
47 //
48 {
49  _refcount = 0;
50 }
51 
52 
53 } // namespace hitfit
A base class for simple reference-counted object.
void nuke_refcount()
Reset the reference count to zero. This should only be used in the context of a destructor of a deriv...
Definition: Refcount.cc:42
unsigned _refcount
Definition: Refcount.h:132