12 #ifndef THRILL_API_PRINT_HEADER 13 #define THRILL_API_PRINT_HEADER 23 template <
typename ValueType,
typename Stack>
29 std::vector<ValueType> output;
31 auto node = tlx::make_counting<GatherNode>(*
this,
"Print", 0, &output);
35 if (node->context().my_rank() == 0)
39 os <<
"--- Begin DIA.Print() --- size=" << output.size() <<
'\n';
40 for (
size_t i = 0; i < output.size(); ++i) {
41 os << name <<
'[' << i <<
"]: " << output[i] <<
'\n';
45 os <<
"--- End DIA.Print() --- size=" << output.size() << std::endl;
49 template <
typename ValueType,
typename Stack>
51 return Print(name, std::cout);
57 #endif // !THRILL_API_PRINT_HEADER
void Print(const std::string &name=std::string()) const
Print is an Action, which collects all data of the DIA at the worker 0 and prints using ostream seria...
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking