Belle II Software development
ZMQLogger::Decrementor Struct Reference

Visitor Helper for decrementing a numerical value. More...

Public Member Functions

void operator() (long &value)
 -1 for longs
 
void operator() (double &value)
 -1 for doubles
 
void operator() (std::string &)
 Makes no sense here, just leave it as it is.
 

Detailed Description

Visitor Helper for decrementing a numerical value.

Definition at line 85 of file ZMQLogger.h.

Member Function Documentation

◆ operator()() [1/3]

void operator() ( double &  value)

-1 for doubles

Definition at line 84 of file ZMQLogger.cc.

85{
86 value -= 1;
87}

◆ operator()() [2/3]

void operator() ( long &  value)

-1 for longs

Definition at line 79 of file ZMQLogger.cc.

80{
81 value -= 1;
82}

◆ operator()() [3/3]

void operator() ( std::string &  )

Makes no sense here, just leave it as it is.

Definition at line 89 of file ZMQLogger.cc.

90{
91 throw std::domain_error("Can not decrement a string type");
92}

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