CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
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 {
17 class RCBase
18 {
19
20 public:
21
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
void ref() const
unsigned int refCount() const
virtual ~RCBase()
Definition Abs.hh:14