test
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 //
3 // File: Refcount.cc
4 // Purpose: Reference count implementation.
5 // Created: Aug 2000, sss, from the version that used to be in d0om.
6 //
7 // CMSSW File : src/Refcount.cc
8 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
9 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
10 //
11 
12 
36 
37 
38 namespace hitfit {
39 
40 
42 //
43 // Purpose: Reset the refcount to zero.
44 // This should only be used in the context of a dtor of a derived
45 // class which wants to throw an exception.
46 //
47 {
48  _refcount = 0;
49 }
50 
51 
52 } // 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:41
unsigned _refcount
Definition: Refcount.h:131