CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
RCBase.cc
Go to the documentation of this file.
1#include "CLHEP/GenericFunctions/RCBase.hh"
2namespace Genfun {
4 : _count(0)
5{
6}
7
8
10{
11}
12
13
14
15void RCBase::ref() const
16{
17 _count++;
18}
19
20void RCBase::unref() const
21{
22 if (!_count)
23 {
24
25 }
26 else
27 {
28 _count--;
29 if (!_count)
30 delete this;
31 }
32}
33
34unsigned int RCBase::refCount() const
35{
36 return _count;
37}
38
39} // namespace Genfun
void unref() const
Definition: RCBase.cc:20
void ref() const
Definition: RCBase.cc:15
virtual ~RCBase()
Definition: RCBase.cc:9
unsigned int refCount() const
Definition: RCBase.cc:34
Definition: Abs.hh:14