Jpp
19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
software
JROOT
JRootAddress.hh
Go to the documentation of this file.
1
#ifndef __JROOT__JROOTADDRESS__
2
#define __JROOT__JROOTADDRESS__
3
4
#include <cstddef>
5
6
/**
7
* \author mdejong
8
*/
9
10
namespace
JROOT
{}
11
namespace
JPP
{
using namespace
JROOT
; }
12
13
namespace
JROOT
{
14
15
/**
16
* Auxiliary classd for address handling within TTree or TChain.
17
*/
18
template
<
class
T>
19
struct
JRootAddress
{
20
/**
21
* Default constructor.
22
*/
23
JRootAddress
() :
24
address
(NULL)
25
{}
26
27
28
/**
29
* Copy constructor.
30
*
31
* Note that the internal address of this class is not copied but instead set to NULL.
32
*
33
* \param address ROOT address
34
*/
35
JRootAddress
(
const
JRootAddress
&
address
) :
36
address
(NULL)
37
{}
38
39
40
/**
41
* Destructor.
42
*
43
* Release memory.
44
*/
45
~JRootAddress
()
46
{
47
release
();
48
}
49
50
51
/**
52
* Release memory.
53
*/
54
void
release
()
55
{
56
if
(
address
!= NULL) {
57
58
delete
address
;
59
60
address
= NULL;
61
}
62
}
63
64
65
/**
66
* Get address.
67
*
68
* \return address
69
*/
70
T*
getAddress
()
const
71
{
72
return
address
;
73
}
74
75
protected
:
76
T*
address
;
77
};
78
}
79
80
#endif
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition
JAAnetToolkit.hh:43
JROOT
Auxiliary classes and methods for ROOT I/O.
Definition
JAbstractStreamer.hh:13
JROOT::JRootAddress
Auxiliary classd for address handling within TTree or TChain.
Definition
JRootAddress.hh:19
JROOT::JRootAddress::~JRootAddress
~JRootAddress()
Destructor.
Definition
JRootAddress.hh:45
JROOT::JRootAddress::address
T * address
Definition
JRootAddress.hh:76
JROOT::JRootAddress::release
void release()
Release memory.
Definition
JRootAddress.hh:54
JROOT::JRootAddress::JRootAddress
JRootAddress()
Default constructor.
Definition
JRootAddress.hh:23
JROOT::JRootAddress::JRootAddress
JRootAddress(const JRootAddress &address)
Copy constructor.
Definition
JRootAddress.hh:35
JROOT::JRootAddress::getAddress
T * getAddress() const
Get address.
Definition
JRootAddress.hh:70
Generated by
1.12.0