Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
HeterogeneousCore
SonicTriton
src
triton_utils.cc
Go to the documentation of this file.
1
#include "
HeterogeneousCore/SonicTriton/interface/triton_utils.h
"
2
3
#include <sstream>
4
#include <experimental/iterator>
5
6
namespace
triton_utils {
7
8
template
<
typename
C>
9
std::string
printColl
(
const
C
& coll,
const
std::string
& delim) {
10
if
(coll.empty())
11
return
""
;
12
std::stringstream
msg
;
13
//avoid trailing delim
14
std::copy
(
std::begin
(coll),
std::end
(coll), std::experimental::make_ostream_joiner(msg, delim));
15
return
msg.str();
16
}
17
18
}
// namespace triton_utils
19
20
template
std::string
triton_utils::printColl
(
const
edm::Span
<std::vector<int64_t>::const_iterator>& coll,
21
const
std::string
& delim);
22
template
std::string
triton_utils::printColl
(
const
std::vector<uint8_t>& coll,
const
std::string
& delim);
23
template
std::string
triton_utils::printColl
(
const
std::vector<float>& coll,
const
std::string
& delim);
24
template
std::string
triton_utils::printColl
(
const
std::unordered_set<std::string>& coll,
const
std::string
& delim);
SplitLinear.begin
list begin
Definition:
SplitLinear.py:25
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
filterCSVwithJSON.copy
tuple copy
Definition:
filterCSVwithJSON.py:36
mps_check.msg
tuple msg
Definition:
mps_check.py:285
triton_utils.h
gen::C
C
Definition:
Factorize.h:133
edm::Span
Definition:
Span.h:16
dataset.end
string end
Definition:
dataset.py:937
triton_utils::printColl
std::string printColl(const C &coll, const std::string &delim=", ")
Definition:
triton_utils.cc:9
Generated for CMSSW Reference Manual by
1.8.5