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

Definition at line 30 of file RYMLParser.h.

Classes

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 (TRYMLTree *t, const Impl &other)
Nodeappend_child () override
const Nodechild (size_t pos) const override
Nodechild (size_t pos) override
virtual children_view children ()
virtual const_children_view children () const
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
virtual bool val_bool () const
virtual double val_double () const
virtual int val_int () const
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
void writeYML (std::ostream &) const override

Protected Attributes

std::unique_ptr< Implnode
TRYMLTreetree
friend TRYMLTree

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

Inheritance diagram for TRYMLTree::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/2]

TRYMLTree::Node::Node ( TRYMLTree * t,
const Impl & other )

Definition at line 149 of file RYMLParser.cxx.

◆ Node() [2/2]

TRYMLTree::Node::Node ( const Node & other)

Definition at line 154 of file RYMLParser.cxx.

Member Function Documentation

◆ append_child()

TRYMLTree::Node & TRYMLTree::Node::append_child ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 247 of file RYMLParser.cxx.

◆ child() [1/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 283 of file RYMLParser.cxx.

◆ child() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 277 of file RYMLParser.cxx.

◆ children() [1/2]

JSONNode::children_view RooFit::Detail::JSONNode::children ( )
virtualinherited

Reimplemented in TJSONTree::Node.

Definition at line 62 of file JSONInterface.cxx.

◆ children() [2/2]

JSONNode::const_children_view RooFit::Detail::JSONNode::children ( ) const
virtualinherited

Reimplemented in TJSONTree::Node.

Definition at line 67 of file JSONInterface.cxx.

◆ clear()

void TRYMLTree::Node::clear ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 126 of file RYMLParser.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.

◆ has_child()

bool TRYMLTree::Node::has_child ( std::string const & s) const
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 265 of file RYMLParser.cxx.

◆ has_key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 253 of file RYMLParser.cxx.

◆ has_val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 259 of file RYMLParser.cxx.

◆ is_container()

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

Implements RooFit::Detail::JSONNode.

Definition at line 212 of file RYMLParser.cxx.

◆ is_map()

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

Implements RooFit::Detail::JSONNode.

Definition at line 218 of file RYMLParser.cxx.

◆ is_seq()

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

Implements RooFit::Detail::JSONNode.

Definition at line 224 of file RYMLParser.cxx.

◆ key()

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

Implements RooFit::Detail::JSONNode.

Definition at line 230 of file RYMLParser.cxx.

◆ num_children()

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

Implements RooFit::Detail::JSONNode.

Definition at line 271 of file RYMLParser.cxx.

◆ operator<<() [1/5]

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

Definition at line 93 of file JSONInterface.h.

◆ operator<<() [2/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 186 of file RYMLParser.cxx.

◆ operator<<() [3/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 179 of file RYMLParser.cxx.

◆ operator<<() [4/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 172 of file RYMLParser.cxx.

◆ operator<<() [5/5]

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

Implements RooFit::Detail::JSONNode.

Definition at line 165 of file RYMLParser.cxx.

◆ operator>>()

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

Implements RooFit::Detail::JSONNode.

Definition at line 193 of file RYMLParser.cxx.

◆ operator[]() [1/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 206 of file RYMLParser.cxx.

◆ operator[]() [2/2]

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

Implements RooFit::Detail::JSONNode.

Definition at line 200 of file RYMLParser.cxx.

◆ set_map()

TRYMLTree::Node & TRYMLTree::Node::set_map ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 112 of file RYMLParser.cxx.

◆ set_seq()

TRYMLTree::Node & TRYMLTree::Node::set_seq ( )
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 119 of file RYMLParser.cxx.

◆ val()

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

Implements RooFit::Detail::JSONNode.

Definition at line 238 of file RYMLParser.cxx.

◆ val_bool()

virtual bool RooFit::Detail::JSONNode::val_bool ( ) const
inlinevirtualinherited

Reimplemented in TJSONTree::Node.

Definition at line 111 of file JSONInterface.h.

◆ val_double()

double RooFit::Detail::JSONNode::val_double ( ) const
virtualinherited

Reimplemented in TJSONTree::Node.

Definition at line 54 of file JSONInterface.cxx.

◆ val_int()

virtual int RooFit::Detail::JSONNode::val_int ( ) const
inlinevirtualinherited

Reimplemented in TJSONTree::Node.

Definition at line 109 of file JSONInterface.h.

◆ 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 TRYMLTree::Node::writeJSON ( std::ostream & os) const
overridevirtual

Implements RooFit::Detail::JSONNode.

Definition at line 100 of file RYMLParser.cxx.

◆ writeYML()

void TRYMLTree::Node::writeYML ( std::ostream & os) const
overridevirtual

Reimplemented from RooFit::Detail::JSONNode.

Definition at line 106 of file RYMLParser.cxx.

Member Data Documentation

◆ node

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

Definition at line 35 of file RYMLParser.h.

◆ tree

TRYMLTree* TRYMLTree::Node::tree
protected

Definition at line 32 of file RYMLParser.h.

◆ TRYMLTree

friend TRYMLTree::Node::TRYMLTree
protected

Definition at line 34 of file RYMLParser.h.


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