Jpp  18.2.1-ARCA-DF-PATCH
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JRootAddress.hh
Go to the documentation of this file.
1 #ifndef __JROOT__JROOTADDRESS__
2 #define __JROOT__JROOTADDRESS__
3 
4 
5 /**
6  * \author mdejong
7  */
8 
9 namespace JROOT {}
10 namespace JPP { using namespace JROOT; }
11 
12 namespace JROOT {
13 
14  /**
15  * Auxiliary classd for address handling within TTree or TChain.
16  */
17  template<class T>
18  struct JRootAddress {
19  /**
20  * Default constructor.
21  */
23  address(NULL)
24  {}
25 
26 
27  /**
28  * Copy constructor.
29  *
30  * Note that the internal address of this class is not copied but instead set to NULL.
31  *
32  * \param address ROOT address
33  */
35  address(NULL)
36  {}
37 
38 
39  /**
40  * Release memory.
41  */
42  void release()
43  {
44  if (address != NULL) {
45 
46  delete address;
47 
48  address = NULL;
49  }
50  }
51 
52 
53  /**
54  * Get address.
55  *
56  * \return address
57  */
58  T* getAddress() const
59  {
60  return address;
61  }
62 
63  protected:
65  };
66 }
67 
68 #endif
void release()
Release memory.
Definition: JRootAddress.hh:42
Auxiliary classd for address handling within TTree or TChain.
Definition: JRootAddress.hh:18
do set_variable OUTPUT_DIRECTORY $WORKDIR T
JRootAddress(const JRootAddress &address)
Copy constructor.
Definition: JRootAddress.hh:34
T * getAddress() const
Get address.
Definition: JRootAddress.hh:58
JRootAddress()
Default constructor.
Definition: JRootAddress.hh:22