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 ()
 
Nodeappend_child () override
 
const Nodechild (size_t pos) const override
 
Nodechild (size_t pos) override
 
const_children_view children () const override
 
children_view children () override
 
void clear () override
 
bool has_child (std::string const &) const override
 
bool has_key () const override
 
bool has_val () const override
 
bool is_container () const override
 
bool is_map () const override
 
bool is_seq () const override
 
std::string key () const override
 
size_t num_children () const override
 
Nodeoperator<< (bool b) override
 
Nodeoperator<< (double d) override
 
Nodeoperator<< (int i) override
 
Nodeoperator<< (std::string const &s) override
 
const Nodeoperator>> (std::string &v) const override
 
const Nodeoperator[] (std::string const &k) const override
 
Nodeoperator[] (std::string const &k) override
 
Nodeset_map () override
 
Nodeset_seq () override
 
std::string val () const override
 
bool val_bool () const override
 
double val_double () const override
 
int val_int () const override
 
void writeJSON (std::ostream &os) const override
 
- Public Member Functions inherited from RooFit::Detail::JSONNode
template<typename Matrix >
void fill_mat (Matrix const &mat)
 
template<typename Collection >
void fill_seq (Collection const &coll)
 
template<typename Collection , typename TransformationFunc >
void fill_seq (Collection const &coll, TransformationFunc func)
 
JSONNode const * find (std::string const &key) const
 
template<typename... Keys_t>
JSONNode const * find (std::string const &key, Keys_t const &...keys) const
 
JSONNodeget (std::string const &key)
 
template<typename... Keys_t>
JSONNodeget (std::string const &key, Keys_t const &...keys)
 
JSONNodeoperator<< (const char *s)
 
template<class T >
val_t () const
 
template<>
int 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::Detail::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-v628/rootspi/rdoc/src/v6-28-00-patches/roofit/jsoninterface/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 100 of file JSONParser.cxx.

◆ Node() [2/4]

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

Definition at line 104 of file JSONParser.cxx.

◆ Node() [3/4]

TJSONTree::Node::Node ( TJSONTree t)

Definition at line 102 of file JSONParser.cxx.

◆ Node() [4/4]

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

Definition at line 109 of file JSONParser.cxx.

◆ ~Node()

TJSONTree::Node::~Node ( )
virtual

Definition at line 111 of file JSONParser.cxx.

Member Function Documentation

◆ append_child()

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

Implements RooFit::Detail::JSONNode.

Definition at line 286 of file JSONParser.cxx.

◆ child() [1/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 302 of file JSONParser.cxx.

◆ child() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 297 of file JSONParser.cxx.

◆ children() [1/2]

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 352 of file JSONParser.cxx.

◆ children() [2/2]

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 346 of file JSONParser.cxx.

◆ clear()

void TJSONTree::Node::clear ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 223 of file JSONParser.cxx.

◆ get_node() [1/2]

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

Definition at line 41 of file JSONParser.cxx.

◆ get_node() [2/2]

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

Definition at line 36 of file JSONParser.cxx.

◆ get_tree() [1/2]

TJSONTree * TJSONTree::Node::get_tree ( )
inlineprotected

Definition at line 34 of file JSONParser.h.

◆ get_tree() [2/2]

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

Definition at line 33 of file JSONParser.h.

◆ has_child()

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

Implements RooFit::Detail::JSONNode.

Definition at line 281 of file JSONParser.cxx.

◆ has_key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 271 of file JSONParser.cxx.

◆ has_val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 276 of file JSONParser.cxx.

◆ is_container()

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

Implements RooFit::Detail::JSONNode.

Definition at line 160 of file JSONParser.cxx.

◆ is_map()

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

Implements RooFit::Detail::JSONNode.

Definition at line 165 of file JSONParser.cxx.

◆ is_seq()

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

Implements RooFit::Detail::JSONNode.

Definition at line 170 of file JSONParser.cxx.

◆ key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 228 of file JSONParser.cxx.

◆ num_children()

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

Implements RooFit::Detail::JSONNode.

Definition at line 292 of file JSONParser.cxx.

◆ operator<<() [1/4]

TJSONTree::Node & TJSONTree::Node::operator<< ( bool  b)
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 138 of file JSONParser.cxx.

◆ operator<<() [2/4]

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

Implements RooFit::Detail::JSONNode.

Definition at line 132 of file JSONParser.cxx.

◆ operator<<() [3/4]

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

Implements RooFit::Detail::JSONNode.

Definition at line 126 of file JSONParser.cxx.

◆ operator<<() [4/4]

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

Implements RooFit::Detail::JSONNode.

Definition at line 120 of file JSONParser.cxx.

◆ operator>>()

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

Implements RooFit::Detail::JSONNode.

Definition at line 144 of file JSONParser.cxx.

◆ operator[]() [1/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 155 of file JSONParser.cxx.

◆ operator[]() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 150 of file JSONParser.cxx.

◆ set_map()

TJSONTree::Node & TJSONTree::Node::set_map ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 195 of file JSONParser.cxx.

◆ set_seq()

TJSONTree::Node & TJSONTree::Node::set_seq ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 209 of file JSONParser.cxx.

◆ val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 233 of file JSONParser.cxx.

◆ val_bool()

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 255 of file JSONParser.cxx.

◆ val_double()

double TJSONTree::Node::val_double ( ) const
overridevirtual

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 251 of file JSONParser.cxx.

◆ val_int()

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 247 of file JSONParser.cxx.

◆ writeJSON()

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

Implements RooFit::Detail::JSONNode.

Definition at line 115 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/jsoninterface/src/JSONParser.h
  • roofit/jsoninterface/src/JSONParser.cxx