Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::JRootAddress< T > Struct Template Reference

Auxiliary classd for address handling within TTree or TChain. More...

#include <JRootAddress.hh>

Inheritance diagram for JROOT::JRootAddress< T >:
JROOT::JChainReader< T > JROOT::JTreeBranchAddresses< T > JROOT::JTreeReader< T > JROOT::JTreeReaderObjectIterator< T > JROOT::JTreeReaderAccessibleObjectIterator< T > JROOT::JRootFileReader< T, true >

Public Member Functions

 JRootAddress ()
 Default constructor.
 
 JRootAddress (const JRootAddress &address)
 Copy constructor.
 
 ~JRootAddress ()
 Destructor.
 
void release ()
 Release memory.
 
T * getAddress () const
 Get address.
 

Protected Attributes

T * address
 

Detailed Description

template<class T>
struct JROOT::JRootAddress< T >

Auxiliary classd for address handling within TTree or TChain.

Definition at line 19 of file JRootAddress.hh.

Constructor & Destructor Documentation

◆ JRootAddress() [1/2]

template<class T >
JROOT::JRootAddress< T >::JRootAddress ( )
inline

Default constructor.

Definition at line 23 of file JRootAddress.hh.

23 :
24 address(NULL)
25 {}

◆ JRootAddress() [2/2]

template<class T >
JROOT::JRootAddress< T >::JRootAddress ( const JRootAddress< T > & address)
inline

Copy constructor.

Note that the internal address of this class is not copied but instead set to NULL.

Parameters
addressROOT address

Definition at line 35 of file JRootAddress.hh.

35 :
36 address(NULL)
37 {}

◆ ~JRootAddress()

template<class T >
JROOT::JRootAddress< T >::~JRootAddress ( )
inline

Destructor.

Release memory.

Definition at line 45 of file JRootAddress.hh.

46 {
47 release();
48 }
void release()
Release memory.

Member Function Documentation

◆ release()

template<class T >
void JROOT::JRootAddress< T >::release ( )
inline

Release memory.

Definition at line 54 of file JRootAddress.hh.

55 {
56 if (address != NULL) {
57
58 delete address;
59
60 address = NULL;
61 }
62 }

◆ getAddress()

template<class T >
T * JROOT::JRootAddress< T >::getAddress ( ) const
inline

Get address.

Returns
address

Definition at line 70 of file JRootAddress.hh.

71 {
72 return address;
73 }

Member Data Documentation

◆ address

template<class T >
T* JROOT::JRootAddress< T >::address
protected

Definition at line 76 of file JRootAddress.hh.


The documentation for this struct was generated from the following file: