The Gaudi Framework
v37r1 (a7f61348)
CounterArray.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include <
Gaudi/Accumulators/CounterArray.h
>
12
#include <fmt/format.h>
13
14
#if FMT_VERSION < 80000
15
namespace
fmt
{
16
template
<
typename
T>
17
const
T&
runtime
(
const
T&
v
) {
18
return
v
;
19
}
20
}
// namespace fmt
21
#endif
22
23
std::string
Gaudi::Accumulators::details::FormatCounterDefault::operator()
(
size_t
n
) {
24
return
fmt::format
(
fmt::runtime
(
text
),
n
);
25
}
Gaudi::Accumulators::details::FormatCounterDefault::operator()
std::string operator()(size_t n)
Definition:
CounterArray.cpp:23
std::string
STL class.
fmt::runtime
const T & runtime(const T &v)
Definition:
MessageSvcSink.cpp:27
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:235
fmt
Definition:
MessageSvcSink.cpp:25
CounterArray.h
Properties.v
v
Definition:
Properties.py:123
Gaudi::Accumulators::details::FormatCounterDefault::text
std::string_view text
Definition:
CounterArray.h:25
GaudiKernel
src
Lib
CounterArray.cpp
Generated on Mon Oct 30 2023 11:39:55 for The Gaudi Framework by
1.8.18