21#include <nlohmann/json.hpp>
39 for (
Int_t i = 0; i< Nit; ++i)
50 printf(
" %10s |", clmn->EvalExpr(data).c_str());
61 nlohmann::json jarr = nlohmann::json::array();
63 for (
Int_t i = 0; i < Nit; ++i) {
70 row[chld->GetCName()] = clmn->EvalExpr(data);
72 catch (
const std::exception&) {
74 row[chld->GetCName()] =
"err";
89 c->SetPrecision(prec);
90 gROOT->ProcessLine(
c->GetFunctionExpressionString().c_str());
92 if (
c->hasValidExpression()) {
134 const char *rtyp =
nullptr;
135 const void *fooptr =
nullptr;
145 s <<
" *((std::function<" << rtyp <<
"(" <<
fClassType->GetName() <<
"*)>*)"
146 << std::hex << std::showbase << (size_t)fooptr
#define R__LOG_ERROR(...)
int Int_t
Signed integer 4 bytes (int).
TClass * GetItemClass() const
std::function< double(void *)> fDoubleFoo
std::string GetFunctionExpressionString() const
std::function< bool(void *)> fBoolFoo
REveDataColumn(const std::string &n="REveDataColumn", const std::string &t="")
std::function< std::string(void *)> fStringFoo
std::string EvalExpr(void *iptr) const
void SetExpressionAndType(const std::string &expr, FieldType_e type)
bool hasValidExpression() const
void SetPrecision(Int_t prec)
const REveDataCollection * GetCollection() const
REveDataTable(const std::string &n="REveDataTable", const std::string &t="")
const REveDataCollection * fCollection
void AddNewColumn(const std::string &expr, const std::string &title, int prec=2)
Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset) override
Write core json.
virtual Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset)
Write core json.
virtual void AddElement(REveElement *el)
Add el to the list of children.
REveElement(const std::string &name="", const std::string &title="")
Default constructor.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Namespace for ROOT features in testing.
ROOT::RLogChannel & REveLog()
Log channel for Eve diagnostics.