The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Accumulators::details::FormatCounterDefault Struct Reference

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

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

Collaboration diagram for Gaudi::Accumulators::details::FormatCounterDefault:

Public Member Functions

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

Public Attributes

std::string_view text

Detailed Description

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

Definition at line 26 of file CounterArray.h.

Constructor & Destructor Documentation

◆ FormatCounterDefault()

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

Definition at line 28 of file CounterArray.h.

Member Function Documentation

◆ operator()()

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

Definition at line 14 of file CounterArray.cpp.

14 {
15 return fmt::format( fmt::runtime( text ), n );
16}

Member Data Documentation

◆ text

std::string_view Gaudi::Accumulators::details::FormatCounterDefault::text

Definition at line 27 of file CounterArray.h.


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