Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RDFDescription.cxx
Go to the documentation of this file.
1// Author: Ivan Kabadzhov, Enrico Guiraud CERN 01/2022
2
3/*************************************************************************
4 * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
12#include <iostream>
13
14namespace ROOT {
15namespace RDF {
16
17RDFDescription::RDFDescription(const std::string &briefDescription, const std::string &fullDescription,
18 unsigned int filecount)
19 : fBriefDescription(briefDescription), fFullDescription(fullDescription), fFileCount(filecount){};
20
21std::string RDFDescription::AsString(bool shortFormat /*= false*/) const
22{
23 if (shortFormat)
24 return fBriefDescription;
25 else
26 return fBriefDescription + "\n\n" + fFullDescription;
27}
28
29void RDFDescription::Print(bool shortFormat /*= false*/) const
30{
31 std::cout << AsString(shortFormat);
32}
33
34std::ostream &operator<<(std::ostream &os, const RDFDescription &description)
35{
36 os << description.AsString();
37 return os;
38}
39
40} // namespace RDF
41} // namespace ROOT
42
43namespace cling {
44//////////////////////////////////////////////////////////////////////////
45/// Print an RDFDescription at the prompt
46std::string printValue(ROOT::RDF::RDFDescription *td)
47{
48 return td->AsString();
49}
50
51} // namespace cling
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
Definition TBuffer.h:397
A DFDescription contains useful information about a given RDataFrame computation graph.
std::string AsString(bool shortFormat=false) const
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...