Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimG4Core
Notification
interface
OwnIt.h
Go to the documentation of this file.
1
#ifndef OwnIt_H
2
#define OwnIt_H
3
7
template
<
class
T>
8
class
OwnIt
{
9
public
:
10
typedef
OwnIt<T>
self
;
11
OwnIt
(
T
*
p
=0) :
it
(
p
){}
12
13
~OwnIt
() {
reset
();}
14
inline
self
&
operator=
(
T
*
p
) {
if
(
it
)
delete
it
;
it
=
p
;
return
*
this
;}
15
inline
T
*
get
()
const
{
return
it
;}
16
inline
void
reset
() {
if
(
it
) {
delete
it
;
it
=0; } }
17
18
private
:
19
T
*
it
;
20
21
};
22
23
#endif // OwnIt_H
OwnIt::~OwnIt
~OwnIt()
Definition:
OwnIt.h:13
OwnIt::reset
void reset()
Definition:
OwnIt.h:16
OwnIt::it
T * it
Definition:
OwnIt.h:19
OwnIt::OwnIt
OwnIt(T *p=0)
Definition:
OwnIt.h:11
L1TEmulatorMonitor_cff.p
tuple p
Definition:
L1TEmulatorMonitor_cff.py:48
OwnIt::operator=
self & operator=(T *p)
Definition:
OwnIt.h:14
OwnIt
Definition:
OwnIt.h:8
T
long double T
Definition:
Basic3DVectorLD.h:57
Generated for CMSSW Reference Manual by
1.8.5