Belle II Software development
ZMQLogger::Incrementor Struct Reference

Visitor Helper for incrementing 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 incrementing a numerical value.

Definition at line 75 of file ZMQLogger.h.

Member Function Documentation

◆ operator()() [1/3]

void operator() ( double &  value)

+1 for doubles

Definition at line 69 of file ZMQLogger.cc.

70{
71 value += 1;
72}

◆ operator()() [2/3]

void operator() ( long &  value)

+1 for longs

Definition at line 64 of file ZMQLogger.cc.

65{
66 value += 1;
67}

◆ operator()() [3/3]

void operator() ( std::string &  )

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

Definition at line 74 of file ZMQLogger.cc.

75{
76 throw std::domain_error("Can not increment a string type");
77}

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