8 #ifndef UTIL_DUMPASSOCIATIONS_H 9 #define UTIL_DUMPASSOCIATIONS_H 1 12 #include <type_traits> 17 #include "cetlib_except/demangle.h" 30 template <
typename Stream,
typename Left,
typename Right,
typename Data>
33 out <<
"Association between '" << cet::demangle_symbol(
typeid(Left).name()) <<
"' and '" 34 << cet::demangle_symbol(
typeid(Right).name()) <<
"'";
35 if (std::is_same<Data, void>()) {
36 out <<
" with '" << cet::demangle_symbol(
typeid(Data).name()) <<
"' metadata";
38 if (assns.
size() > 0) { out <<
" contains " << assns.
size() <<
" relations"; }
46 #endif // UTIL_DUMPASSOCIATIONS_H
Namespace for general, non-LArSoft-specific utilities.
void DumpAssociationsIntro(Stream &&out, art::Assns< Left, Right, Data > const &assns)
Dumps a short introduction about specified association.