Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
12 #ifndef GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H
13 #define GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H 1
27 #include <unordered_set>
70 template <
class ITERATOR>
95 const int p =
static_cast<int>(
s.precision() );
103 const int p =
static_cast<int>(
s.precision() );
111 const int p =
static_cast<int>(
s.precision() );
122 template <
class KTYPE,
class VTYPE>
124 return toStream( obj.second,
toStream( obj.first,
s <<
"( " ) <<
" , " ) <<
" )";
127 template <
typename... Args>
137 template <
class TYPE,
class ALLOCATOR>
148 template <
class TYPE,
class ALLOCATOR>
159 template <
class TYPE,
class CMP,
class ALLOCATOR>
167 template <
class TYPE,
class HASH,
class CMP,
class ALLOCATOR>
170 return obj.
empty() ?
s <<
"set()" :
toStream( ordered.begin(), ordered.end(),
s,
"{ ",
" }",
" , " );
180 template <
class KTYPE,
class VTYPE,
class CMP,
class ALLOCATOR>
198 template <
class KTYPE,
class VTYPE,
class CMP,
class ALLOCATOR>
216 template <
class KTYPE,
class VTYPE,
class MAP>
234 template <
class KTYPE,
class VTYPE,
class HASH,
class MAP>
244 template <
class TYPE,
unsigned int N>
246 if constexpr (
N == 1 ) {
247 return toStream( obj[0],
s <<
"( " ) <<
" , )";
249 return toStream( obj, obj +
N,
s,
"( ",
" )",
" , " );
257 template <
class TYPE, std::
size_t N>
259 if constexpr (
N == 1 ) {
260 return toStream( obj[0],
s <<
"( " ) <<
" , )";
270 template <
unsigned int N>
286 template <
class TYPE>
292 template <
class Tuple, std::
size_t N>
300 template <
class Tuple>
313 template <
typename... Args>
333 template <
class ITERATOR>
356 template <
class TYPE>
359 std::ios::fmtflags orig_flags =
s.flags();
360 s.setf( std::ios::showpoint );
362 s.flags( orig_flags );
T setprecision(T... args)
static std::ostream & toStream(const Tuple &t, std::ostream &s)
AttribStringParser::Iterator begin(const AttribStringParser &parser)
AttribStringParser::Iterator end(const AttribStringParser &)
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
static std::ostream & toStream(const Tuple &t, std::ostream &s)
Stream & ostream_joiner(Stream &os, Iterator first, Iterator last, Separator sep, OutputElement output=OutputElement{})