Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TopQuarkAnalysis
TopHitFit
src
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
36
#include "
TopQuarkAnalysis/TopHitFit/interface/Refcount.h
"
37
38
39
namespace
hitfit {
40
41
42
void
Refcount::nuke_refcount
()
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
Refcount.h
A base class for simple reference-counted object.
hitfit::Refcount::nuke_refcount
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
hitfit::Refcount::_refcount
unsigned _refcount
Definition:
Refcount.h:132
Generated for CMSSW Reference Manual by
1.8.5