| 
    Jpp
    17.3.1
    
   the software that should make you happy 
   | 
 
Auxiliary class to copy input data to corresponding TTree. More...
#include <JAutoTreeWriter.hh>
  
 Classes | |
| struct | JElement_t | 
| Auxiliary class for element insertion.  More... | |
Public Types | |
| typedef JAutoMap< JKey_t,  JTreeCopyWriterInterface * > ::map_type  | map_type | 
| typedef JAutoMap< JKey_t,  JTreeCopyWriterInterface * > ::value_type  | value_type | 
| typedef map_type::const_iterator | const_iterator | 
| typedef map_type::iterator | iterator | 
| typedef  map_type::const_reverse_iterator  | const_reverse_iterator | 
| typedef map_type::reverse_iterator | reverse_iterator | 
| typedef JPointer< JClass_t > | pointer_type | 
| typedef JMemory_t< JClass_t > | memory_type | 
Public Member Functions | |
| JAutoTreeWriter () | |
| Default constrtuctor.  More... | |
| template<class T > | |
| JAutoTreeWriter (JType< T > type) | |
| Constructor.  More... | |
| template<class T > | |
| void | insert () | 
| Insert (list of) data type(s).  More... | |
| virtual void | open (const char *file_name) override | 
| Open file.  More... | |
| virtual void | close () override | 
| Close file.  More... | |
| template<> | |
| JNET::JTag | getKey (JLANG::JType< T > type) | 
| template<> | |
| int | getKey (JLANG::JType< T > type) | 
| template<class T , class JElement_t > | |
| void | insert (const JAutomate< JElement_t > &automate) | 
| Insert list of data types.  More... | |
| TFile * | getFile () const | 
| Get file.  More... | |
| virtual bool | is_open () const override | 
| Check is file is open.  More... | |
| virtual void | reset () override | 
| Reset pointer.  More... | |
| template<class T > | |
| void | reset (const JPointer< T > &pointer) | 
| Reset pointer.  More... | |
| void | reset (JClass_t *p) | 
| Reset pointer.  More... | |
| void | recreate () | 
| Recreate object in memory.  More... | |
| void | create () | 
| Create object in memory.  More... | |
| void | create (const unsigned int size) | 
| Create array of objects in memory.  More... | |
| virtual JClass_t * | get () const override | 
| Get pointer.  More... | |
| virtual void | set (JClass_t *p) override | 
| Set pointer.  More... | |
| template<class T > | |
| void | set (const JPointer< T > &pointer) | 
| Set pointer.  More... | |
| JClass_t *const & | getReference () const | 
| Get rereference to internal pointer.  More... | |
| JClass_t *& | getReference () | 
| Get rereference to internal pointer.  More... | |
| virtual bool | equals (const JAbstractPointer &object) const | 
| Equals.  More... | |
| bool | is_valid () const | 
| Check validity of pointer.  More... | |
| JClass_t * | operator-> () const | 
| Smart pointer operator.  More... | |
| operator JClass_t * () const | |
| Type conversion operator.  More... | |
Static Public Member Functions | |
| template<class T > | |
| static JKey_t | getKey (JType< T > type) | 
| Get key.  More... | |
| template<class T > | |
| static value_type | getAutoElement (JType< T > type) | 
| Creation of a map element for given data type.  More... | |
| static void | Throw (const bool option) | 
| Enable/disable throw option.  More... | |
| static int | Throw (const JException &error, const int value=-1) | 
| Throw exception or return error.  More... | |
Protected Member Functions | |
| template<class T , class JElement_t > | |
| void | insert (JType< T > type, const JAutomate< JElement_t > &automate) | 
| Insertion of single data type.  More... | |
| template<class JHead_t , class JTail_t , class JElement_t > | |
| void | insert (JType< JTypeList< JHead_t, JTail_t > > typelist, const JAutomate< JElement_t > &automate) | 
| Recursive insertion of data types.  More... | |
| template<class JElement_t > | |
| void | insert (JType< JNullType > type, const JAutomate< JElement_t > &automate) | 
| Template specialisation to terminate insertion of data types.  More... | |
| void | release () | 
| Release memory.  More... | |
Protected Attributes | |
| JClass_t * | __p | 
| pointer to object  More... | |
Static Protected Attributes | |
| static bool | do_throw | 
| throw option  More... | |
Auxiliary class to copy input data to corresponding TTree.
This class derives from JROOT::JRootOutputFile. It re-implements the methods open and close of the underlying JLANG::JAccessible class so that each TTree is properly attached to and detached from the corresponding TDirectory, respectively.
Definition at line 33 of file JAutoTreeWriter.hh.
| typedef JAutoMap<JKey_t, JTreeCopyWriterInterface*>::map_type JSUPPORT::JAutoTreeWriter< JKey_t >::map_type | 
Definition at line 39 of file JAutoTreeWriter.hh.
| typedef JAutoMap<JKey_t, JTreeCopyWriterInterface*>::value_type JSUPPORT::JAutoTreeWriter< JKey_t >::value_type | 
Definition at line 40 of file JAutoTreeWriter.hh.
| typedef map_type::const_iterator JSUPPORT::JAutoTreeWriter< JKey_t >::const_iterator | 
Definition at line 42 of file JAutoTreeWriter.hh.
| typedef map_type::iterator JSUPPORT::JAutoTreeWriter< JKey_t >::iterator | 
Definition at line 43 of file JAutoTreeWriter.hh.
| typedef map_type::const_reverse_iterator JSUPPORT::JAutoTreeWriter< JKey_t >::const_reverse_iterator | 
Definition at line 44 of file JAutoTreeWriter.hh.
| typedef map_type::reverse_iterator JSUPPORT::JAutoTreeWriter< JKey_t >::reverse_iterator | 
Definition at line 45 of file JAutoTreeWriter.hh.
      
  | 
  inherited | 
Definition at line 32 of file JStorage.hh.
      
  | 
  inherited | 
Definition at line 33 of file JStorage.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  static | 
Get key.
This method should be overloaded for the requested data types.
| type | data type | 
      
  | 
  inline | 
      
  | 
  inlineoverridevirtual | 
Open file.
| file_name | file name | 
Reimplemented from JROOT::JRootOutputFile.
Definition at line 96 of file JAutoTreeWriter.hh.
      
  | 
  inlineoverridevirtual | 
Close file.
Reimplemented from JROOT::JRootOutputFile.
Definition at line 111 of file JAutoTreeWriter.hh.
| JNET::JTag JSUPPORT::JAutoTreeWriter< JNET::JTag >::getKey | ( | JLANG::JType< T > | type | ) | 
| int JSUPPORT::JAutoTreeWriter< int >::getKey | ( | JLANG::JType< T > | type | ) | 
      
  | 
  staticinherited | 
Creation of a map element for given data type.
This method should be overloaded for the requested data types if the method insert() is used without argument.
| type | data type | 
      
  | 
  inlineinherited | 
Insert list of data types.
| automate | type defined element | 
Definition at line 137 of file JAutoMap.hh.
      
  | 
  inlineprotectedinherited | 
Insertion of single data type.
| type | data type | 
| automate | element automate by data type | 
Definition at line 150 of file JAutoMap.hh.
      
  | 
  inlineprotectedinherited | 
Recursive insertion of data types.
| typelist | type list | 
| automate | element automate by data type | 
Definition at line 164 of file JAutoMap.hh.
      
  | 
  inlineprotectedinherited | 
Template specialisation to terminate insertion of data types.
| type | null type | 
| automate | element automate by data type | 
Definition at line 179 of file JAutoMap.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineoverridevirtualinherited | 
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 77 of file JRootFile.hh.
      
  | 
  inlinestaticinherited | 
      
  | 
  inlinestaticinherited | 
Throw exception or return error.
| error | exception | 
| value | return code | 
Definition at line 50 of file JThrow.hh.
      
  | 
  inlineoverridevirtualinherited | 
Reset pointer.
The allocated memory is released.
Reimplemented from JLANG::JPointer< JClass_t >.
Reimplemented in JLANG::JSharedPointer< JClass_t, JMemory_t >, JLANG::JSharedPointer< JFlux >, JLANG::JSharedPointer< JAccessibleObjectIterator< KM3NETDAQ::KM3NETDAQ::JDAQEvent > >, JLANG::JSharedPointer< const TFormula >, JLANG::JSharedPointer< JObjectIterator< T > >, JLANG::JSharedPointer< JFIT::JMEstimator >, JLANG::JSharedPointer< JAbstractAutoPointer< JBase_t > >, JLANG::JSharedPointer< JEvtWeight >, JLANG::JSharedPointer< JTRIGGER::JDAQHitSelector >, JLANG::JSharedPointer< JAccessibleObjectIterator< JNullType > >, JLANG::JSharedPointer< match_type >, JLANG::JSharedPointer< JAccessibleObjectIterator< JDAQSummaryslice > >, JLANG::JSharedPointer< JDiffuseFlux >, JLANG::JSharedPointer< JEvtWeightFactor_t >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTail_t > >, JLANG::JSharedPointer< JLOGGER::JLogger >, JLANG::JSharedPointer< JAccessibleObjectIterator< T > >, JLANG::JSharedPointer< JParserElementInterface >, JLANG::JSharedPointer< JExceptionHandler >, JLANG::JSharedPointer< JObjectOutput< JHead_t > >, JLANG::JSharedPointer< JOscProb >, JLANG::JSharedPointer< JAccessibleObjectIterator< JHead_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JTail_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JHead_t > >, JLANG::JSharedPointer< JObjectOutput< T > >, JLANG::JSharedPointer< JBase_t >, JLANG::JSharedPointer< JObjectOutput< JTail_t > >, JLANG::JSharedPointer< JPropertiesElementInterface >, JLANG::JSharedPointer< JTRIGGER::JMatch >, JLANG::JSharedPointer< JRewindableObjectIterator< const T > >, JLANG::JSharedPointer< JEvtWeightFactor >, JLANG::JSharedPointer< JRewindableObjectIterator< T > >, JLANG::JSharedPointer< JAccessibleObjectOutput< T > >, JLANG::JSharedPointer< JNET::JControlHost >, JLANG::JSharedPointer< JTOOLS::JMultiMapTransformer >, and JLANG::JSharedPointer< JRadiation >.
Definition at line 42 of file JStorage.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Recreate object in memory.
A new object is created if no memory is allocated yet, else the previously created object is maintained.
Definition at line 57 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create object in memory.
The memory allocated by a previously created object will be released.
Definition at line 69 of file JStorage.hh.
      
  | 
  inlineinherited | 
Create array of objects in memory.
The memory allocated by previously created objects will be released.
| size | number of elements | 
Definition at line 81 of file JStorage.hh.
      
  | 
  inlineprotectedinherited | 
Release memory.
Definition at line 91 of file JStorage.hh.
      
  | 
  inlineoverridevirtualinherited | 
Get pointer.
Implements JLANG::JAbstractPointer< JClass_t >.
Reimplemented in JLANG::JMultiPointer< JTypeList< JHead_t, JTail_t > >, JLANG::JMultiPointer< JClass_t >, JLANG::JMultiPointer< JTail_t >, JLANG::JMultiPointer< JHead_t >, JLANG::JMultiPointer< T >, and JLANG::JMultiPointer< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 64 of file JPointer.hh.
      
  | 
  inlineoverridevirtualinherited | 
Set pointer.
| p | pointer to object | 
Implements JLANG::JAbstractPointer< JClass_t >.
Reimplemented in JLANG::JSharedPointer< JClass_t, JMemory_t >, JLANG::JSharedPointer< JFlux >, JLANG::JSharedPointer< JAccessibleObjectIterator< KM3NETDAQ::KM3NETDAQ::JDAQEvent > >, JLANG::JSharedPointer< const TFormula >, JLANG::JSharedPointer< JObjectIterator< T > >, JLANG::JSharedPointer< JFIT::JMEstimator >, JLANG::JSharedPointer< JAbstractAutoPointer< JBase_t > >, JLANG::JSharedPointer< JEvtWeight >, JLANG::JSharedPointer< JTRIGGER::JDAQHitSelector >, JLANG::JSharedPointer< JAccessibleObjectIterator< JNullType > >, JLANG::JSharedPointer< match_type >, JLANG::JSharedPointer< JAccessibleObjectIterator< JDAQSummaryslice > >, JLANG::JSharedPointer< JDiffuseFlux >, JLANG::JSharedPointer< JEvtWeightFactor_t >, JLANG::JSharedPointer< JAccessibleObjectIterator< JTail_t > >, JLANG::JSharedPointer< JLOGGER::JLogger >, JLANG::JSharedPointer< JAccessibleObjectIterator< T > >, JLANG::JSharedPointer< JParserElementInterface >, JLANG::JSharedPointer< JExceptionHandler >, JLANG::JSharedPointer< JObjectOutput< JHead_t > >, JLANG::JSharedPointer< JOscProb >, JLANG::JSharedPointer< JAccessibleObjectIterator< JHead_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JTail_t > >, JLANG::JSharedPointer< JRewindableObjectIterator< JHead_t > >, JLANG::JSharedPointer< JObjectOutput< T > >, JLANG::JSharedPointer< JBase_t >, JLANG::JSharedPointer< JObjectOutput< JTail_t > >, JLANG::JSharedPointer< JPropertiesElementInterface >, JLANG::JSharedPointer< JTRIGGER::JMatch >, JLANG::JSharedPointer< JRewindableObjectIterator< const T > >, JLANG::JSharedPointer< JEvtWeightFactor >, JLANG::JSharedPointer< JRewindableObjectIterator< T > >, JLANG::JSharedPointer< JAccessibleObjectOutput< T > >, JLANG::JSharedPointer< JNET::JControlHost >, JLANG::JSharedPointer< JTOOLS::JMultiMapTransformer >, and JLANG::JSharedPointer< JRadiation >.
Definition at line 75 of file JPointer.hh.
      
  | 
  inlineinherited | 
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 119 of file JPointer.hh.
      
  | 
  inlineinherited | 
Get rereference to internal pointer.
Definition at line 130 of file JPointer.hh.
      
  | 
  inlinevirtualinherited | 
Equals.
The equality is evaluated by comparison of the internal pointers.
| object | abstract pointer | 
Definition at line 50 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Check validity of pointer.
Definition at line 83 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Smart pointer operator.
Definition at line 112 of file JAbstractPointer.hh.
      
  | 
  inlineinherited | 
Type conversion operator.
Definition at line 126 of file JAbstractPointer.hh.
      
  | 
  staticprotectedinherited | 
      
  | 
  protectedinherited | 
pointer to object
Definition at line 136 of file JPointer.hh.
 1.8.5