Jpp  19.1.0
the software that should make you happy
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Private Member Functions | List of all members
JTRIGGER::JParametersHelper< JParameters_t > Struct Template Reference

Wrapper class to share parameters. More...

#include <JParametersHelper.hh>

Inherits JParameters_t.

Public Member Functions

 JParametersHelper ()
 Default constructor. More...
 
 JParametersHelper (const JParameters_t &parameters)
 Copy constructor. More...
 

Static Public Member Functions

static const JParameters_t & getParameters ()
 Get latest parameters. More...
 

Public Attributes

int number_of_entries
 
int number_of_outliers
 
JRange< double > range
 

Static Public Attributes

static const char SKIPLINE = '#'
 skip line character More...
 

Static Private Member Functions

static const JParameters_t *& get ()
 Get pointer to latest parameters. More...
 

Detailed Description

template<class JParameters_t>
struct JTRIGGER::JParametersHelper< JParameters_t >

Wrapper class to share parameters.

The static method JParametersHelper::getParameters can be used to obtain the latest parameter values.

Definition at line 19 of file JParametersHelper.hh.

Constructor & Destructor Documentation

◆ JParametersHelper() [1/2]

template<class JParameters_t >
JTRIGGER::JParametersHelper< JParameters_t >::JParametersHelper ( )
inline

Default constructor.

Definition at line 25 of file JParametersHelper.hh.

25  :
26  JParameters_t()
27  {
28  get() = static_cast<const JParameters_t*>(this);
29  }
static const JParameters_t *& get()
Get pointer to latest parameters.

◆ JParametersHelper() [2/2]

template<class JParameters_t >
JTRIGGER::JParametersHelper< JParameters_t >::JParametersHelper ( const JParameters_t &  parameters)
inline

Copy constructor.

Parameters
parametersparameters

Definition at line 37 of file JParametersHelper.hh.

37  :
38  JParameters_t(parameters)
39  {
40  get() = static_cast<const JParameters_t*>(this);
41  }

Member Function Documentation

◆ getParameters()

template<class JParameters_t >
static const JParameters_t& JTRIGGER::JParametersHelper< JParameters_t >::getParameters ( )
inlinestatic

Get latest parameters.

Returns
parameters

Definition at line 49 of file JParametersHelper.hh.

50  {
51  return *get();
52  }

◆ get()

template<class JParameters_t >
static const JParameters_t*& JTRIGGER::JParametersHelper< JParameters_t >::get ( )
inlinestaticprivate

Get pointer to latest parameters.

Returns
pointer to latest parameters

Definition at line 60 of file JParametersHelper.hh.

61  {
62  static const JParameters_t* parameters;
63 
64  return parameters;
65  }

Member Data Documentation

◆ SKIPLINE

const char JParameters_t::SKIPLINE = '#'
staticinherited

skip line character

Definition at line 37 of file JTestTuna.cc.

◆ number_of_entries

int JParameters_t::number_of_entries
inherited

Definition at line 80 of file JTestTuna.cc.

◆ number_of_outliers

int JParameters_t::number_of_outliers
inherited

Definition at line 81 of file JTestTuna.cc.

◆ range

JRange<double> JParameters_t::range
inherited

Definition at line 82 of file JTestTuna.cc.


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