CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
RCBase.hh
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id:
3//------------------RCBase--------------------------------------------------//
4// //
5// Class RCBase //
6// Joe Boudreau //
7// Base class for reference counting //
8// //
9//--------------------------------------------------------------------------//
10#ifndef RCBase_h
11#define RCBase_h 1
12namespace Genfun {
13 /**
14 * @author
15 * @ingroup genfun
16 */
17 class RCBase
18 {
19
20 public:
21
22 RCBase();
23
24
25 void ref() const;
26
27 void unref() const;
28
29 unsigned int refCount() const;
30
31
32 protected:
33
34 virtual ~RCBase();
35
36 private:
37
38 RCBase(const RCBase &right);
39
40 const RCBase & operator=(const RCBase &right);
41
42 mutable unsigned short int _count;
43
44
45
46 };
47
48
49
50}
51
52
53#endif
54
55
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