Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JSUPPORT::JMonteCarloStreamObjectOutput< T > Class Template Referenceabstract

Template definition of Monte Carlo stream output for single data type. More...

#include <JMonteCarloFileWriter.hh>

Inheritance diagram for JSUPPORT::JMonteCarloStreamObjectOutput< T >:
JLANG::JObjectOutput< T > JLANG::JNullOutput< T > JLANG::JSingleton< JNullOutput< T > > JLANG::JObjectOutput< T > JSUPPORT::JMonteCarloFileWriter< T >

Public Types

typedef T data_type
 

Public Member Functions

virtual bool put (const T &object)=0
 Object output.
 
virtual bool put (const T &object) override
 Object output.
 

Static Public Member Functions

static data_typegetInstance ()
 Get unique instance of template class.
 

Protected Member Functions

 JMonteCarloStreamObjectOutput (std::ostream &out)
 Constructor.
 

Detailed Description

template<class T>
class JSUPPORT::JMonteCarloStreamObjectOutput< T >

Template definition of Monte Carlo stream output for single data type.

This class provides for a null implementation of the JLANG::JObjectOutput interface. It should be specialised for the data types that will be written to a Monte Carlo file.

Definition at line 37 of file JMonteCarloFileWriter.hh.

Member Typedef Documentation

◆ data_type

T JLANG::JSingleton< T >::data_type
inherited

Definition at line 20 of file JSingleton.hh.

Constructor & Destructor Documentation

◆ JMonteCarloStreamObjectOutput()

template<class T >
JSUPPORT::JMonteCarloStreamObjectOutput< T >::JMonteCarloStreamObjectOutput ( std::ostream & out)
inlineprotected

Constructor.

Parameters
outoutput stream

Definition at line 47 of file JMonteCarloFileWriter.hh.

48 {}

Member Function Documentation

◆ put() [1/2]

◆ put() [2/2]

template<class T >
virtual bool JLANG::JNullOutput< T >::put ( const T & object)
inlineoverridevirtualinherited

Object output.

Parameters
objectobject
Returns
false

Implements JLANG::JObjectOutput< T >.

Definition at line 153 of file JObjectOutput.hh.

154 {
155 return false;
156 }

◆ getInstance()

static data_type & JLANG::JSingleton< T >::getInstance ( )
inlinestaticinherited

Get unique instance of template class.

Returns
object

Definition at line 27 of file JSingleton.hh.

28 {
29 static data_type value;
30
31 return value;
32 }

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