Jpp  18.0.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
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 JNullOutput< Tdata_type
 

Public Member Functions

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

Static Public Member Functions

static data_typegetInstance ()
 Get unique instance of template class. More...
 

Protected Member Functions

 JMonteCarloStreamObjectOutput (std::ostream &out)
 Constructor. More...
 

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

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

Definition at line 20 of file JSingleton.hh.

Constructor & Destructor Documentation

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

template<class T>
virtual bool JLANG::JObjectOutput< T >::put ( const T object)
pure virtualinherited
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  }
static data_type& JLANG::JSingleton< JNullOutput< 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: