Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
Public Types | Public Member Functions | Static Public Member Functions | List of all members
JLANG::JNullOutput< T > Struct Template Reference

Implementation of null output for single data type. More...

#include <JObjectOutput.hh>

Inheritance diagram for JLANG::JNullOutput< T >:
JLANG::JSingleton< JNullOutput< T > > JLANG::JObjectOutput< T > JSUPPORT::JMonteCarloStreamObjectOutput< JTail_t > JSUPPORT::JMonteCarloStreamObjectOutput< JHead_t > JIO::JBinaryWriterObjectOutput< T, false > JLANG::JNullAccessibleOutput< T > JSUPPORT::JDAQWriterObjectOutput< T, false > JSUPPORT::JMonteCarloStreamObjectOutput< T > JSUPPORT::JMonteCarloStreamObjectOutput< JTypeList< JHead_t, JTail_t > > JSUPPORT::JMonteCarloStreamObjectOutput< JTypeList< JHead_t, JNullType > > JSUPPORT::JMonteCarloStreamObjectOutput< JTypeList< JHead_t, JTail_t > > JSUPPORT::JMonteCarloFileWriter< T >

Public Types

typedef JNullOutput< T > data_type
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

template<class T>
struct JLANG::JNullOutput< T >

Implementation of null output for single data type.

Definition at line 143 of file JObjectOutput.hh.

Member Typedef Documentation

◆ data_type

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

Definition at line 20 of file JSingleton.hh.

Member Function Documentation

◆ put()

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

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< 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 struct was generated from the following file: