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 Types

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>

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
template<typename Matrix>
void fill_mat (Matrix const &mat)
template<typename Collection>
void fill_seq (Collection const &coll)
template<typename Collection>
void fill_seq (Collection const &coll, size_t nmax)
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)
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
JSONNodeoperator<< (const char *s)
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
template<>
bool val_t () const
template<>
double val_t () const
template<>
int val_t () const
template<class T>
val_t () const
void writeJSON (std::ostream &os) const override
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

#include </home/stephan/code/root-2/roofit/jsoninterface/src/JSONParser.h>

Inheritance diagram for TJSONTree::Node:
RooFit::Detail::JSONNode

Member Typedef Documentation

◆ child_iterator

◆ children_view

◆ const_child_iterator

Definition at line 74 of file JSONInterface.h.

◆ const_children_view

Definition at line 121 of file JSONInterface.h.

Constructor & Destructor Documentation

◆ Node() [1/4]

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

Definition at line 111 of file JSONParser.cxx.

◆ Node() [2/4]

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

Definition at line 115 of file JSONParser.cxx.

◆ Node() [3/4]

TJSONTree::Node::Node ( TJSONTree * t)

Definition at line 113 of file JSONParser.cxx.

◆ Node() [4/4]

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

Definition at line 120 of file JSONParser.cxx.

◆ ~Node()

TJSONTree::Node::~Node ( )
virtualdefault

Member Function Documentation

◆ append_child()

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

Implements RooFit::Detail::JSONNode.

Definition at line 301 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 317 of file JSONParser.cxx.

◆ child() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 312 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 370 of file JSONParser.cxx.

◆ children() [2/2]

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 364 of file JSONParser.cxx.

◆ clear()

void TJSONTree::Node::clear ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 234 of file JSONParser.cxx.

◆ fill_mat()

template<typename Matrix>
void RooFit::Detail::JSONNode::fill_mat ( Matrix const & mat)
inlineinherited

Definition at line 160 of file JSONInterface.h.

◆ fill_seq() [1/3]

template<typename Collection>
void RooFit::Detail::JSONNode::fill_seq ( Collection const & coll)
inlineinherited

Definition at line 129 of file JSONInterface.h.

◆ fill_seq() [2/3]

template<typename Collection>
void RooFit::Detail::JSONNode::fill_seq ( Collection const & coll,
size_t nmax )
inlineinherited

Definition at line 138 of file JSONInterface.h.

◆ fill_seq() [3/3]

template<typename Collection, typename TransformationFunc>
void RooFit::Detail::JSONNode::fill_seq ( Collection const & coll,
TransformationFunc func )
inlineinherited

Definition at line 151 of file JSONInterface.h.

◆ find() [1/2]

JSONNode const * RooFit::Detail::JSONNode::find ( std::string const & key) const
inlineinherited

Definition at line 172 of file JSONInterface.h.

◆ find() [2/2]

template<typename... Keys_t>
JSONNode const * RooFit::Detail::JSONNode::find ( std::string const & key,
Keys_t const &... keys ) const
inlineinherited

Definition at line 179 of file JSONInterface.h.

◆ get() [1/2]

JSONNode & RooFit::Detail::JSONNode::get ( std::string const & key)
inlineinherited

Definition at line 185 of file JSONInterface.h.

◆ get() [2/2]

template<typename... Keys_t>
JSONNode & RooFit::Detail::JSONNode::get ( std::string const & key,
Keys_t const &... keys )
inlineinherited

Definition at line 193 of file JSONInterface.h.

◆ get_node() [1/2]

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

Definition at line 52 of file JSONParser.cxx.

◆ get_node() [2/2]

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

Definition at line 47 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 296 of file JSONParser.cxx.

◆ has_key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 286 of file JSONParser.cxx.

◆ has_val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 291 of file JSONParser.cxx.

◆ is_container()

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

Implements RooFit::Detail::JSONNode.

Definition at line 171 of file JSONParser.cxx.

◆ is_map()

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

Implements RooFit::Detail::JSONNode.

Definition at line 176 of file JSONParser.cxx.

◆ is_seq()

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

Implements RooFit::Detail::JSONNode.

Definition at line 181 of file JSONParser.cxx.

◆ key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 239 of file JSONParser.cxx.

◆ num_children()

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

Implements RooFit::Detail::JSONNode.

Definition at line 307 of file JSONParser.cxx.

◆ operator<<() [1/5]

JSONNode & RooFit::Detail::JSONNode::operator<< ( const char * s)
inlineinherited

Definition at line 93 of file JSONInterface.h.

◆ operator<<() [2/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 149 of file JSONParser.cxx.

◆ operator<<() [3/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 143 of file JSONParser.cxx.

◆ operator<<() [4/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 137 of file JSONParser.cxx.

◆ operator<<() [5/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 131 of file JSONParser.cxx.

◆ operator>>()

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

Implements RooFit::Detail::JSONNode.

Definition at line 155 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 166 of file JSONParser.cxx.

◆ operator[]() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 161 of file JSONParser.cxx.

◆ set_map()

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

Implements RooFit::Detail::JSONNode.

Definition at line 206 of file JSONParser.cxx.

◆ set_seq()

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

Implements RooFit::Detail::JSONNode.

Definition at line 220 of file JSONParser.cxx.

◆ val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 244 of file JSONParser.cxx.

◆ val_bool()

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 270 of file JSONParser.cxx.

◆ val_double()

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 266 of file JSONParser.cxx.

◆ val_int()

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

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 262 of file JSONParser.cxx.

◆ val_t() [1/4]

template<>
bool RooFit::Detail::JSONNode::val_t ( ) const
inlineinherited

Definition at line 306 of file JSONInterface.h.

◆ val_t() [2/4]

template<>
double RooFit::Detail::JSONNode::val_t ( ) const
inlineinherited

Definition at line 301 of file JSONInterface.h.

◆ val_t() [3/4]

template<>
int RooFit::Detail::JSONNode::val_t ( ) const
inlineinherited

Definition at line 296 of file JSONInterface.h.

◆ val_t() [4/4]

template<class T>
T RooFit::Detail::JSONNode::val_t ( ) const
inherited

◆ writeJSON()

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

Implements RooFit::Detail::JSONNode.

Definition at line 126 of file JSONParser.cxx.

◆ writeYML()

virtual void RooFit::Detail::JSONNode::writeYML ( std::ostream & ) const
inlinevirtualinherited

Reimplemented in TRYMLTree::Node.

Definition at line 89 of file JSONInterface.h.

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.


The documentation for this class was generated from the following files: