\hypertarget{_to_stream_8h}{\section{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/include/\-D\-D4hep/\-To\-Stream.h File Reference}
\label{_to_stream_8h}\index{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/include/\-D\-D4hep/\-To\-Stream.\-h@{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Core/include/\-D\-D4hep/\-To\-Stream.\-h}}
}
{\ttfamily \#include $<$iostream$>$}\\*
{\ttfamily \#include $<$iomanip$>$}\\*
{\ttfamily \#include $<$vector$>$}\\*
{\ttfamily \#include $<$map$>$}\\*
{\ttfamily \#include $<$set$>$}\\*
{\ttfamily \#include $<$list$>$}\\*
{\ttfamily \#include $<$deque$>$}\\*
{\ttfamily \#include $<$string$>$}\\*
{\ttfamily \#include $<$sstream$>$}\\*
{\ttfamily \#include \char`\"{}Math/\-Point3\-D.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Math/\-Vector3\-D.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Math/\-Vector4\-D.\-h\char`\"{}}\\*
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_d_d4hep}{D\-D4hep}
\begin{DoxyCompactList}\small\item\em Namespace for the A\-I\-D\-A detector description toolkit. \end{DoxyCompactList}\item 
\hyperlink{namespace_d_d4hep_1_1_utils}{D\-D4hep\-::\-Utils}
\begin{DoxyCompactList}\small\item\em Utility namespace to support boost\-::spirit. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class T\-Y\-P\-E $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a427d8efde90cd13f3934319c89ef6c35}{D\-D4hep\-::\-Utils\-::to\-Stream} (const T\-Y\-P\-E \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class I\-T\-E\-R\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_acf5ffb31569b70cc4e4b347b5f8d858f}{D\-D4hep\-::\-Utils\-::to\-Stream} (I\-T\-E\-R\-A\-T\-O\-R first, I\-T\-E\-R\-A\-T\-O\-R last, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s}, const std\-::string \&open, const std\-::string \&close, const std\-::string \&delim)
\begin{DoxyCompactList}\small\item\em the helper function to print the sequence \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_aa018a120e53fa6edbb44f423a31baa21}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::string \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\begin{DoxyCompactList}\small\item\em the printtout of the strings. \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a4f1e298302e413af8ba3059d36f85336}{D\-D4hep\-::\-Utils\-::to\-Stream} (const bool obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\begin{DoxyCompactList}\small\item\em the printout of boolean values \char`\"{}a'la Python\char`\"{} \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_af0a209fec5d19539ace63d69570c70b7}{D\-D4hep\-::\-Utils\-::to\-Stream} (const float obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s}, const int prec=6)
\begin{DoxyCompactList}\small\item\em the printout of float values with the reasonable precision \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a63ebaf591a7f6deb9f4f5d9984e3b745}{D\-D4hep\-::\-Utils\-::to\-Stream} (const double obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s}, const int prec=8)
\begin{DoxyCompactList}\small\item\em the printout of double values with the reasonable precision \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_ac4881c1c93e7105a9f241b2664679409}{D\-D4hep\-::\-Utils\-::to\-Stream} (const long double obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s}, const int prec=10)
\begin{DoxyCompactList}\small\item\em the printout of long double values with the reasonable precision \end{DoxyCompactList}\item 
{\footnotesize template$<$class K\-T\-Y\-P\-E , class V\-T\-Y\-P\-E $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a503ee3c9f053315e32b3e5c86bc653d9}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::pair$<$ K\-T\-Y\-P\-E, V\-T\-Y\-P\-E $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , class A\-L\-L\-O\-C\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a9018241e575dafecf003bf871b8d6ef1}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::vector$<$ T\-Y\-P\-E, A\-L\-L\-O\-C\-A\-T\-O\-R $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , class A\-L\-L\-O\-C\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_aaa747cec6fddff24617f88f07fe5240f}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::list$<$ T\-Y\-P\-E, A\-L\-L\-O\-C\-A\-T\-O\-R $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , class A\-L\-L\-O\-C\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_aae9b1d676de789590541461e5187810d}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::deque$<$ T\-Y\-P\-E, A\-L\-L\-O\-C\-A\-T\-O\-R $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , class C\-M\-P , class A\-L\-L\-O\-C\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_afaa532b1449559b0d94fc5ea4ff89e0f}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::set$<$ T\-Y\-P\-E, C\-M\-P, A\-L\-L\-O\-C\-A\-T\-O\-R $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class K\-T\-Y\-P\-E , class V\-T\-Y\-P\-E , class C\-M\-P , class A\-L\-L\-O\-C\-A\-T\-O\-R $>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_afe5b1089a2b4c65f34fc789456ad2fa7}{D\-D4hep\-::\-Utils\-::to\-Stream} (const std\-::map$<$ K\-T\-Y\-P\-E, V\-T\-Y\-P\-E, C\-M\-P, A\-L\-L\-O\-C\-A\-T\-O\-R $>$ \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , unsigned int N$>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a12b3cc30e429682af25ebf60c4527ce2}{D\-D4hep\-::\-Utils\-::to\-Stream} (T\-Y\-P\-E(\&obj)\mbox{[}N\mbox{]}, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E , unsigned int N$>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a6fd757ad84b1cf53481c6c4bd48f26c0}{D\-D4hep\-::\-Utils\-::to\-Stream} (const T\-Y\-P\-E(\&obj)\mbox{[}N\mbox{]}, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$unsigned int N$>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_ae93240ec7d2befb47d6bd09e1d318380}{D\-D4hep\-::\-Utils\-::to\-Stream} (char(\&obj)\mbox{[}N\mbox{]}, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$unsigned int N$>$ }\\std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a44ffcb1297d43e7a738c41a669e40cd6}{D\-D4hep\-::\-Utils\-::to\-Stream} (const char(\&obj)\mbox{[}N\mbox{]}, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a0e52adf037edd29df048973406fc2554}{D\-D4hep\-::\-Utils\-::to\-Stream} (const char $\ast$obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
{\footnotesize template$<$class T\-Y\-P\-E $>$ }\\std\-::string \hyperlink{namespace_d_d4hep_1_1_utils_a4e482234503764883507107b417e1de2}{D\-D4hep\-::\-Utils\-::to\-String} (const T\-Y\-P\-E \&obj)
\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_a2a135f6ca6327240ccb6a2f796c6fc49}{D\-D4hep\-::\-Utils\-::to\-Stream} (const R\-O\-O\-T\-::\-Math\-::\-X\-Y\-Z\-Point \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\begin{DoxyCompactList}\small\item\em print X\-Y\-Z point \end{DoxyCompactList}\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_ad01ecddf10c1ce2ef7593b0a01516898}{D\-D4hep\-::\-Utils\-::to\-Stream} (const R\-O\-O\-T\-::\-Math\-::\-X\-Y\-Z\-Vector \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\item 
std\-::ostream \& \hyperlink{namespace_d_d4hep_1_1_utils_aba37b7ad17a5c6c9f0db489d583ce2bc}{D\-D4hep\-::\-Utils\-::to\-Stream} (const R\-O\-O\-T\-::\-Math\-::\-Px\-Py\-Pz\-E\-Vector \&obj, std\-::ostream \&\hyperlink{_volumes_8cpp_a17ca6bfc8040d695d3cada22a4763d40}{s})
\begin{DoxyCompactList}\small\item\em print Lorentz vector \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
implemenattiono fvarioud functions for streaming. this functionality is essenital for usag eof varuodu types as property for the various \hyperlink{namespace_d_d4hep}{D\-D4hep} components \begin{DoxyAttention}{Attention}
the implemenation of the specific specializations must be done before the inclusion of this file 
\end{DoxyAttention}
\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{todo__todo000001}{Todo}]\hyperlink{_to_stream_8h}{To\-Stream.\-h} \-: reimplement in terms of functors, to allow easier especializations \end{DoxyRefDesc}


Definition in file \hyperlink{_to_stream_8h_source}{To\-Stream.\-h}.

