21REveTableViewInfo::REveTableViewInfo(
const std::string &
name,
const std::string &title) :
REveElement(
name, title), fConfigChanged(false)
43 printf(
"REveTableViewInfo::AddNewColumnToCurrentCollection error: collection not found\n");
47 const char *rtyp =
"void";
51 s <<
"*((std::function<" << rtyp <<
"(" << icls->GetName() <<
"*)>*)" << std::hex << std::showbase << (size_t)(&fooptr)
52 <<
") = [](" << icls->GetName() <<
"* p){" << icls->GetName() <<
" &i=*p; return (" << expr
56 gROOT->ProcessLine(
s.str().c_str(), &err);
59 std::cout <<
"REveTableViewInfo::AddNewColumnToCurrentCollection failed." << std::endl;
typedef void((*Func_t)())
TClass * GetItemClass() const
virtual Int_t WriteCoreJson(nlohmann::json &cj, Int_t rnr_offset)
Write core json.
REveElement * FindElementById(ElementId_t id) const
Lookup ElementId in element map and return corresponding REveElement*.
REveTableHandle & column(const std::string &name, int precision, const std::string &expression)
void AddNewColumnToCurrentCollection(const std::string &expr, const std::string &title, int prec=2)
void SetDisplayedCollection(ElementId_t)
std::vector< Delegate_t > fDelegates
REveTableHandle table(std::string className)
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
virtual const char * GetName() const
Returns name of object.
R__EXTERN REveManager * gEve
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
static constexpr double s