CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP/GenericFunctions/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
12 namespace Genfun {
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 
unsigned int refCount() const
Definition: RCBase.cc:34
virtual ~RCBase()
Definition: RCBase.cc:9
void ref() const
Definition: RCBase.cc:15
void unref() const
Definition: RCBase.cc:20