Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::Detail::JSONNode Class Referenceabstract

Definition at line 25 of file JSONInterface.h.

Classes

class  child_iterator_t
 
class  children_view_t
 

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

virtual JSONNodeappend_child ()=0
 
virtual const JSONNodechild (size_t pos) const =0
 
virtual JSONNodechild (size_t pos)=0
 
virtual children_view children ()
 
virtual const_children_view children () const
 
virtual void clear ()=0
 
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)
 
virtual bool has_child (std::string const &) const =0
 
virtual bool has_key () const =0
 
virtual bool has_val () const =0
 
virtual bool is_container () const =0
 
virtual bool is_map () const =0
 
virtual bool is_seq () const =0
 
virtual std::string key () const =0
 
virtual size_t num_children () const =0
 
virtual JSONNodeoperator<< (bool b)=0
 
JSONNodeoperator<< (const char *s)
 
virtual JSONNodeoperator<< (double d)=0
 
virtual JSONNodeoperator<< (int i)=0
 
virtual JSONNodeoperator<< (std::string const &s)=0
 
virtual const JSONNodeoperator>> (std::string &v) const =0
 
virtual const JSONNodeoperator[] (std::string const &k) const =0
 
virtual JSONNodeoperator[] (std::string const &k)=0
 
virtual JSONNodeset_map ()=0
 
virtual JSONNodeset_seq ()=0
 
virtual std::string val () const =0
 
virtual bool val_bool () const
 
virtual double val_double () const
 
virtual int val_int () const
 
template<class T >
val_t () const
 
template<>
int val_t () const
 
template<>
double val_t () const
 
template<>
bool val_t () const
 
virtual void writeJSON (std::ostream &os) const =0
 
virtual void writeYML (std::ostream &) const
 

#include <RooFit/Detail/JSONInterface.h>

Inheritance diagram for RooFit::Detail::JSONNode:
[legend]

Member Typedef Documentation

◆ child_iterator

◆ children_view

◆ const_child_iterator

◆ const_children_view

Member Function Documentation

◆ append_child()

virtual JSONNode & RooFit::Detail::JSONNode::append_child ( )
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ child() [1/2]

virtual const JSONNode & RooFit::Detail::JSONNode::child ( size_t  pos) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ child() [2/2]

virtual JSONNode & RooFit::Detail::JSONNode::child ( size_t  pos)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ children() [1/2]

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

Reimplemented in TJSONTree::Node.

Definition at line 54 of file JSONInterface.cxx.

◆ children() [2/2]

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

Reimplemented in TJSONTree::Node.

Definition at line 59 of file JSONInterface.cxx.

◆ clear()

virtual void RooFit::Detail::JSONNode::clear ( )
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ fill_mat()

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

Definition at line 157 of file JSONInterface.h.

◆ fill_seq() [1/3]

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

Definition at line 126 of file JSONInterface.h.

◆ fill_seq() [2/3]

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

Definition at line 135 of file JSONInterface.h.

◆ fill_seq() [3/3]

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

Definition at line 148 of file JSONInterface.h.

◆ find() [1/2]

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

Definition at line 169 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
inline

Definition at line 176 of file JSONInterface.h.

◆ get() [1/2]

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

Definition at line 182 of file JSONInterface.h.

◆ get() [2/2]

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

Definition at line 190 of file JSONInterface.h.

◆ has_child()

virtual bool RooFit::Detail::JSONNode::has_child ( std::string const &  ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ has_key()

virtual bool RooFit::Detail::JSONNode::has_key ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ has_val()

virtual bool RooFit::Detail::JSONNode::has_val ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ is_container()

virtual bool RooFit::Detail::JSONNode::is_container ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ is_map()

virtual bool RooFit::Detail::JSONNode::is_map ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ is_seq()

virtual bool RooFit::Detail::JSONNode::is_seq ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ key()

virtual std::string RooFit::Detail::JSONNode::key ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ num_children()

virtual size_t RooFit::Detail::JSONNode::num_children ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator<<() [1/5]

virtual JSONNode & RooFit::Detail::JSONNode::operator<< ( bool  b)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator<<() [2/5]

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

Definition at line 90 of file JSONInterface.h.

◆ operator<<() [3/5]

virtual JSONNode & RooFit::Detail::JSONNode::operator<< ( double  d)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator<<() [4/5]

virtual JSONNode & RooFit::Detail::JSONNode::operator<< ( int  i)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator<<() [5/5]

virtual JSONNode & RooFit::Detail::JSONNode::operator<< ( std::string const &  s)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator>>()

virtual const JSONNode & RooFit::Detail::JSONNode::operator>> ( std::string &  v) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator[]() [1/2]

virtual const JSONNode & RooFit::Detail::JSONNode::operator[] ( std::string const &  k) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ operator[]() [2/2]

virtual JSONNode & RooFit::Detail::JSONNode::operator[] ( std::string const &  k)
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ set_map()

virtual JSONNode & RooFit::Detail::JSONNode::set_map ( )
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ set_seq()

virtual JSONNode & RooFit::Detail::JSONNode::set_seq ( )
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ val()

virtual std::string RooFit::Detail::JSONNode::val ( ) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ val_bool()

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

Reimplemented in TJSONTree::Node.

Definition at line 108 of file JSONInterface.h.

◆ val_double()

virtual double RooFit::Detail::JSONNode::val_double ( ) const
inlinevirtual

Reimplemented in TJSONTree::Node.

Definition at line 107 of file JSONInterface.h.

◆ val_int()

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

Reimplemented in TJSONTree::Node.

Definition at line 106 of file JSONInterface.h.

◆ val_t() [1/4]

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

◆ val_t() [2/4]

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

Definition at line 254 of file JSONInterface.h.

◆ val_t() [3/4]

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

Definition at line 259 of file JSONInterface.h.

◆ val_t() [4/4]

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

Definition at line 264 of file JSONInterface.h.

◆ writeJSON()

virtual void RooFit::Detail::JSONNode::writeJSON ( std::ostream &  os) const
pure virtual

Implemented in TJSONTree::Node, and TRYMLTree::Node.

◆ writeYML()

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

Reimplemented in TRYMLTree::Node.

Definition at line 86 of file JSONInterface.h.


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