CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ZMhandleTo.h
Go to the documentation of this file.
1#ifndef ZMHANDLETO_H
2#define ZMHANDLETO_H
3
4
5// ----------------------------------------------------------------------
6//
7// ZMhandleTo.h - generic handle class for objects that need to be
8// reference-counted
9//
10// History:
11// 19-Sep-1997 WEB Design stolen, and code adapted, from
12// Stroustrup: "The C++ Programming Language, 3rd edition" (1997), p 783
13// Koenig & Moo: "Ruminations on C++" (1996), ch 7
14//
15// ----------------------------------------------------------------------
16
17
18#ifndef ZMUSECOUNT_H
19#include "CLHEP/RefCount/ZMuseCount.h"
20#endif
21
22
23template< class T >
25
26public:
27
29 ZMhandleTo( const ZMhandleTo & h );
31
33
34protected:
35 ZMhandleTo( const T & t );
36 ZMhandleTo( const T * t );
37
39 T * rep_;
40
41
42}; // ZMhandleTo<>
43
44
45#include "CLHEP/RefCount/ZMhandleTo.icc"
46
47
48#endif // ZMHANDLETO_H
ZMhandleTo(const T &t)
ZMhandleTo & operator=(const ZMhandleTo &rhs)
ZMuseCount u_
Definition: ZMhandleTo.h:38
ZMhandleTo(const ZMhandleTo &h)
ZMhandleTo(const T *t)