Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TJSONTree Class Reference

Definition at line 22 of file JSONParser.h.

Classes

class  Node
 

Public Member Functions

 TJSONTree ()
 
 TJSONTree (std::istream &is)
 
 ~TJSONTree () override
 
TJSONTree::Nodeincache (const TJSONTree::Node &n)
 
Noderootnode () override
 
- Public Member Functions inherited from RooFit::Detail::JSONTree
virtual ~JSONTree ()=default
 

Protected Member Functions

void clearcache ()
 

Protected Attributes

std::list< Node_nodecache
 
Node root
 

Additional Inherited Members

- Static Public Member Functions inherited from RooFit::Detail::JSONTree
static std::unique_ptr< JSONTreecreate ()
 
static std::unique_ptr< JSONTreecreate (std::istream &is)
 
static std::unique_ptr< JSONTreecreate (std::string const &str)
 
static std::string getBackend ()
 Returns the name of the library that serves as the backend for the JSON interface, which is either "nlohmann-json" or "rapidyaml".
 
static bool hasBackend (std::string const &name)
 Check if ROOT was compiled with support for a certain JSON backend library.
 
static void setBackend (std::string const &name)
 Set the library that serves as the backend for the JSON interface.
 

#include </github/home/ROOT-CI/src/roofit/jsoninterface/src/JSONParser.h>

Inheritance diagram for TJSONTree:
[legend]

Constructor & Destructor Documentation

◆ TJSONTree() [1/2]

TJSONTree::TJSONTree ( )

Definition at line 32 of file JSONParser.cxx.

◆ ~TJSONTree()

TJSONTree::~TJSONTree ( )
override

Definition at line 36 of file JSONParser.cxx.

◆ TJSONTree() [2/2]

TJSONTree::TJSONTree ( std::istream & is)

Definition at line 34 of file JSONParser.cxx.

Member Function Documentation

◆ clearcache()

void TJSONTree::clearcache ( )
protected

Definition at line 57 of file JSONParser.cxx.

◆ incache()

TJSONTree::Node & TJSONTree::incache ( const TJSONTree::Node & n)

Definition at line 41 of file JSONParser.cxx.

◆ rootnode()

Node & TJSONTree::rootnode ( )
inlineoverridevirtual

Implements RooFit::Detail::JSONTree.

Definition at line 87 of file JSONParser.h.

Member Data Documentation

◆ _nodecache

std::list<Node> TJSONTree::_nodecache
protected

Definition at line 78 of file JSONParser.h.

◆ root

Node TJSONTree::root
protected

Definition at line 77 of file JSONParser.h.

  • roofit/jsoninterface/src/JSONParser.h
  • roofit/jsoninterface/src/JSONParser.cxx