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"
2
namespace
Genfun
{
3
RCBase::RCBase
()
4
: _count(0)
5
{
6
}
7
8
9
RCBase::~RCBase
()
10
{
11
}
12
13
14
15
void
RCBase::ref
()
const
16
{
17
_count++;
18
}
19
20
void
RCBase::unref
()
const
21
{
22
if
(!_count)
23
{
24
25
}
26
else
27
{
28
_count--;
29
if
(!_count)
30
delete
this
;
31
}
32
}
33
34
unsigned
int
RCBase::refCount
()
const
35
{
36
return
_count;
37
}
38
39
}
// namespace Genfun
Genfun::RCBase::unref
void unref() const
Definition:
RCBase.cc:20
Genfun::RCBase::ref
void ref() const
Definition:
RCBase.cc:15
Genfun::RCBase::~RCBase
virtual ~RCBase()
Definition:
RCBase.cc:9
Genfun::RCBase::refCount
unsigned int refCount() const
Definition:
RCBase.cc:34
Genfun::RCBase::RCBase
RCBase()
Definition:
RCBase.cc:3
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
src
RCBase.cc
Generated by
1.9.6