Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::JObjectStreamer< T > Class Template Reference

JObjectStreamer class. More...

#include <JRootStreamer.hh>

Inheritance diagram for JROOT::JObjectStreamer< T >:
JROOT::JAbstractStreamer

Public Member Functions

virtual JRootReadergetObject (JRootReader &in, void *address) const
 Stream input.
 
virtual JRootWriterputObject (JRootWriter &out, const void *address) const
 Stream output.
 
virtual JRootWriterput (JRootWriter &out, const std::string &prefix, const void *address) const
 Stream output.
 

Detailed Description

template<class T>
class JROOT::JObjectStreamer< T >

JObjectStreamer class.

This class implements the JROOT::JAstractStreamer interface for the given template class.
The I/O functionality is transferred first to the JRootStreamer class and subsequently -by default- to the JRootReader and JRootWriter class.

Definition at line 644 of file JRootStreamer.hh.

Member Function Documentation

◆ getObject()

template<class T >
virtual JRootReader & JROOT::JObjectStreamer< T >::getObject ( JRootReader & in,
void * address ) const
inlinevirtual

Stream input.

Parameters
inobject reader
addresspointer to object
Returns
object reader

Implements JROOT::JAbstractStreamer.

Definition at line 655 of file JRootStreamer.hh.

656 {
657 return JRootStreamer<T>::getObject(in, * ((T*) address));
658 }
static JRootReader & getObject(JRootReader &reader, T &object)
Read object.

◆ putObject()

template<class T >
virtual JRootWriter & JROOT::JObjectStreamer< T >::putObject ( JRootWriter & out,
const void * address ) const
inlinevirtual

Stream output.

Parameters
outobject writer
addresspointer to object
Returns
object writer

Implements JROOT::JAbstractStreamer.

Definition at line 668 of file JRootStreamer.hh.

669 {
670 return JRootStreamer<T>::putObject(out, * ((const T*) address));
671 }
static JRootWriter & putObject(JRootWriter &writer, const T &object)
Write object.

◆ put()

template<class T >
virtual JRootWriter & JROOT::JObjectStreamer< T >::put ( JRootWriter & out,
const std::string & prefix,
const void * address ) const
inlinevirtual

Stream output.

Parameters
outobject writer
prefixprefix
addresspointer to object
Returns
object writer

Implements JROOT::JAbstractStreamer.

Definition at line 682 of file JRootStreamer.hh.

683 {
684 return JRootStreamer<T>::put(out, prefix, * ((const T*) address));
685 }
static JRootWriter & put(JRootWriter &writer, const std::string &key, const T &value)
Write given key and value according equation format.

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