The Gaudi Framework  master (594c33fa)
Gaudi::Accumulators::details::FormatHistDefault Struct Reference

Default formating for histogram names and title, only calling fmt::format on the text given at construction and passing the histo index as argument. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Accumulators/HistogramArray.h>

Collaboration diagram for Gaudi::Accumulators::details::FormatHistDefault:

Public Member Functions

 FormatHistDefault (std::string_view t)
 
std::string operator() (size_t n)
 

Public Attributes

std::string_view text
 

Detailed Description

Default formating for histogram names and title, only calling fmt::format on the text given at construction and passing the histo index as argument.

Definition at line 24 of file HistogramArray.h.

Constructor & Destructor Documentation

◆ FormatHistDefault()

Gaudi::Accumulators::details::FormatHistDefault::FormatHistDefault ( std::string_view  t)
inline

Definition at line 26 of file HistogramArray.h.

26 : text{ t } {}

Member Function Documentation

◆ operator()()

std::string Gaudi::Accumulators::details::FormatHistDefault::operator() ( size_t  n)

Definition at line 23 of file HistogramArray.cpp.

23  {
24  return fmt::format( fmt::runtime( text ), n );
25 }

Member Data Documentation

◆ text

std::string_view Gaudi::Accumulators::details::FormatHistDefault::text

Definition at line 25 of file HistogramArray.h.


The documentation for this struct was generated from the following files:
Gaudi::Accumulators::details::FormatHistDefault::text
std::string_view text
Definition: HistogramArray.h:25
fmt::runtime
const T & runtime(const T &v)
Definition: MessageSvcSink.cpp:28
bug_34121.t
t
Definition: bug_34121.py:31
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:234