Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TJSONTree::Node Class Reference

Definition at line 24 of file JSONParser.h.

Classes

class  ChildItImpl
 
class  Impl
 

Public Member Functions

 Node (const Node &other)
 
 Node (TJSONTree *t)
 
 Node (TJSONTree *t, Impl &other)
 
 Node (TJSONTree *t, std::istream &is)
 
virtual ~Node ()
 
virtual Nodeappend_child () override
 
virtual const Nodechild (size_t pos) const override
 
virtual Nodechild (size_t pos) override
 
const_children_view children () const override
 
children_view children () override
 
virtual bool has_child (std::string const &) const override
 
virtual bool has_key () const override
 
virtual bool has_val () const override
 
virtual bool is_container () const override
 
virtual bool is_map () const override
 
virtual bool is_seq () const override
 
virtual std::string key () const override
 
virtual size_t num_children () const override
 
virtual Nodeoperator<< (double d) override
 
virtual Nodeoperator<< (int i) override
 
virtual Nodeoperator<< (std::string const &s) override
 
virtual const Nodeoperator>> (std::string &v) const override
 
virtual const Nodeoperator[] (size_t pos) const override
 
virtual Nodeoperator[] (size_t pos) override
 
virtual const Nodeoperator[] (std::string const &k) const override
 
virtual Nodeoperator[] (std::string const &k) override
 
virtual void set_map () override
 
virtual void set_seq () override
 
virtual std::string val () const override
 
virtual bool val_bool () const override
 
virtual float val_float () const override
 
virtual int val_int () const override
 
virtual void writeJSON (std::ostream &os) const override
 
- Public Member Functions inherited from RooFit::Experimental::JSONNode
template<class T >
JSONNodeoperator<< (const std::vector< T > &v)
 
template<class T >
val_t () const
 
template<>
int val_t () const
 
template<>
float val_t () const
 
template<>
double val_t () const
 
template<>
bool val_t () const
 
virtual void writeYML (std::ostream &) const
 

Protected Member Functions

Implget_node ()
 
const Implget_node () const
 
TJSONTreeget_tree ()
 
const TJSONTreeget_tree () const
 

Protected Attributes

std::unique_ptr< Implnode
 
friend TJSONTree
 
TJSONTreetree
 

Additional Inherited Members

- Public Types inherited from RooFit::Experimental::JSONNode
using child_iterator = child_iterator_t< JSONNode >
 
using children_view = children_view_t< JSONNode >
 
using const_child_iterator = child_iterator_t< const JSONNode >
 
using const_children_view = children_view_t< const JSONNode >
 

#include </home/sftnight/build/workspace/root-makedoc-v626/rootspi/rdoc/src/v6-26-00-patches/roofit/hs3/src/JSONParser.h>

Inheritance diagram for TJSONTree::Node:
[legend]

Constructor & Destructor Documentation

◆ Node() [1/4]

TJSONTree::Node::Node ( TJSONTree t,
std::istream &  is 
)

Definition at line 117 of file JSONParser.cxx.

◆ Node() [2/4]

TJSONTree::Node::Node ( TJSONTree t,
Impl other 
)

Definition at line 121 of file JSONParser.cxx.

◆ Node() [3/4]

TJSONTree::Node::Node ( TJSONTree t)

Definition at line 119 of file JSONParser.cxx.

◆ Node() [4/4]

TJSONTree::Node::Node ( const Node other)

Definition at line 126 of file JSONParser.cxx.

◆ ~Node()

TJSONTree::Node::~Node ( )
virtual

Definition at line 128 of file JSONParser.cxx.

Member Function Documentation

◆ append_child()

TJSONTree::Node & TJSONTree::Node::append_child ( )
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 315 of file JSONParser.cxx.

◆ child() [1/2]

const TJSONTree::Node & TJSONTree::Node::child ( size_t  pos) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 331 of file JSONParser.cxx.

◆ child() [2/2]

TJSONTree::Node & TJSONTree::Node::child ( size_t  pos)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 326 of file JSONParser.cxx.

◆ children() [1/2]

RooFit::Experimental::JSONNode::const_children_view TJSONTree::Node::children ( ) const
overridevirtual

Reimplemented from RooFit::Experimental::JSONNode.

Definition at line 379 of file JSONParser.cxx.

◆ children() [2/2]

RooFit::Experimental::JSONNode::children_view TJSONTree::Node::children ( )
overridevirtual

Reimplemented from RooFit::Experimental::JSONNode.

Definition at line 373 of file JSONParser.cxx.

◆ get_node() [1/2]

TJSONTree::Node::Impl & TJSONTree::Node::get_node ( )
protected

Definition at line 58 of file JSONParser.cxx.

◆ get_node() [2/2]

const TJSONTree::Node::Impl & TJSONTree::Node::get_node ( ) const
protected

Definition at line 48 of file JSONParser.cxx.

◆ get_tree() [1/2]

TJSONTree * TJSONTree::Node::get_tree ( )
protected

Definition at line 43 of file JSONParser.cxx.

◆ get_tree() [2/2]

const TJSONTree * TJSONTree::Node::get_tree ( ) const
protected

Definition at line 53 of file JSONParser.cxx.

◆ has_child()

bool TJSONTree::Node::has_child ( std::string const &  c) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 310 of file JSONParser.cxx.

◆ has_key()

bool TJSONTree::Node::has_key ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 300 of file JSONParser.cxx.

◆ has_val()

bool TJSONTree::Node::has_val ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 305 of file JSONParser.cxx.

◆ is_container()

bool TJSONTree::Node::is_container ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 181 of file JSONParser.cxx.

◆ is_map()

bool TJSONTree::Node::is_map ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 186 of file JSONParser.cxx.

◆ is_seq()

bool TJSONTree::Node::is_seq ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 191 of file JSONParser.cxx.

◆ key()

std::string TJSONTree::Node::key ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 242 of file JSONParser.cxx.

◆ num_children()

size_t TJSONTree::Node::num_children ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 321 of file JSONParser.cxx.

◆ operator<<() [1/3]

TJSONTree::Node & TJSONTree::Node::operator<< ( double  d)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 149 of file JSONParser.cxx.

◆ operator<<() [2/3]

TJSONTree::Node & TJSONTree::Node::operator<< ( int  i)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 143 of file JSONParser.cxx.

◆ operator<<() [3/3]

TJSONTree::Node & TJSONTree::Node::operator<< ( std::string const &  s)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 137 of file JSONParser.cxx.

◆ operator>>()

const TJSONTree::Node & TJSONTree::Node::operator>> ( std::string &  v) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 155 of file JSONParser.cxx.

◆ operator[]() [1/4]

const TJSONTree::Node & TJSONTree::Node::operator[] ( size_t  pos) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 176 of file JSONParser.cxx.

◆ operator[]() [2/4]

TJSONTree::Node & TJSONTree::Node::operator[] ( size_t  pos)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 166 of file JSONParser.cxx.

◆ operator[]() [3/4]

const TJSONTree::Node & TJSONTree::Node::operator[] ( std::string const &  k) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 171 of file JSONParser.cxx.

◆ operator[]() [4/4]

TJSONTree::Node & TJSONTree::Node::operator[] ( std::string const &  k)
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 161 of file JSONParser.cxx.

◆ set_map()

void TJSONTree::Node::set_map ( )
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 216 of file JSONParser.cxx.

◆ set_seq()

void TJSONTree::Node::set_seq ( )
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 229 of file JSONParser.cxx.

◆ val()

std::string TJSONTree::Node::val ( ) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 262 of file JSONParser.cxx.

◆ val_bool()

bool TJSONTree::Node::val_bool ( ) const
overridevirtual

Reimplemented from RooFit::Experimental::JSONNode.

Definition at line 284 of file JSONParser.cxx.

◆ val_float()

float TJSONTree::Node::val_float ( ) const
overridevirtual

Reimplemented from RooFit::Experimental::JSONNode.

Definition at line 280 of file JSONParser.cxx.

◆ val_int()

int TJSONTree::Node::val_int ( ) const
overridevirtual

Reimplemented from RooFit::Experimental::JSONNode.

Definition at line 276 of file JSONParser.cxx.

◆ writeJSON()

void TJSONTree::Node::writeJSON ( std::ostream &  os) const
overridevirtual

Implements RooFit::Experimental::JSONNode.

Definition at line 132 of file JSONParser.cxx.

Member Data Documentation

◆ node

std::unique_ptr<Impl> TJSONTree::Node::node
protected

Definition at line 31 of file JSONParser.h.

◆ TJSONTree

friend TJSONTree::Node::TJSONTree
protected

Definition at line 30 of file JSONParser.h.

◆ tree

TJSONTree* TJSONTree::Node::tree
protected

Definition at line 26 of file JSONParser.h.

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