CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
triton_utils Namespace Reference

Typedefs

using Error = triton::client::Error
 

Functions

template<typename C >
std::string printColl (const C &coll, const std::string &delim=", ")
 
void throwIfError (const Error &err, std::string_view msg)
 

Typedef Documentation

using triton_utils::Error = typedef triton::client::Error

Definition at line 15 of file triton_utils.h.

Function Documentation

template<typename C >
std::string triton_utils::printColl ( const C &  coll,
const std::string &  delim = ", " 
)

Definition at line 12 of file triton_utils.cc.

References SplitLinear::begin, filterCSVwithJSON::copy, dataset::end, and mps_check::msg.

Referenced by TritonClient::TritonClient().

12  {
13  if (coll.empty())
14  return "";
15  std::stringstream msg;
16  //avoid trailing delim
17  std::copy(std::begin(coll), std::end(coll), std::experimental::make_ostream_joiner(msg, delim));
18  return msg.str();
19  }
tuple msg
Definition: mps_check.py:285
string end
Definition: dataset.py:937
void triton_utils::throwIfError ( const Error &  err,
std::string_view  msg 
)