Jpp master_rocky-44-g75b7c4f75
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 ()
 
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

Definition at line 40 of file JRootAddress.hh.

40 {
41 delete address;
42 }

Member Function Documentation

◆ release()

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

Release memory.

Definition at line 46 of file JRootAddress.hh.

47 {
48 if (address != NULL) {
49
50 delete address;
51
52 address = NULL;
53 }
54 }

◆ getAddress()

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

Get address.

Returns
address

Definition at line 62 of file JRootAddress.hh.

63 {
64 return address;
65 }

Member Data Documentation

◆ address

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

Definition at line 68 of file JRootAddress.hh.


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