Logo ROOT  
Reference Guide
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 , typename TransformationFunc >
void fill_seq (Collection const &coll, TransformationFunc func)
 
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<< (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[] (size_t pos) const =0
 
virtual JSONNodeoperator[] (size_t pos)=0
 
virtual const JSONNodeoperator[] (std::string const &k) const =0
 
virtual JSONNodeoperator[] (std::string const &k)=0
 
virtual void set_map ()=0
 
virtual void set_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 52 of file JSONInterface.cxx.

◆ children() [2/2]

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

Reimplemented in TJSONTree::Node.

Definition at line 57 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 138 of file JSONInterface.h.

◆ fill_seq() [1/2]

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

Definition at line 120 of file JSONInterface.h.

◆ fill_seq() [2/2]

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

Definition at line 129 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/3]

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

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

◆ operator<<() [2/3]

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

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

◆ operator<<() [3/3]

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/4]

virtual const JSONNode & RooFit::Detail::JSONNode::operator[] ( size_t  pos) const
pure virtual

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

◆ operator[]() [2/4]

virtual JSONNode & RooFit::Detail::JSONNode::operator[] ( size_t  pos)
pure virtual

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

◆ operator[]() [3/4]

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

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

◆ operator[]() [4/4]

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

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

◆ set_map()

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

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

◆ set_seq()

virtual void 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 102 of file JSONInterface.h.

◆ val_double()

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

Reimplemented in TJSONTree::Node.

Definition at line 101 of file JSONInterface.h.

◆ val_int()

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

Reimplemented in TJSONTree::Node.

Definition at line 100 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

Definition at line 70 of file JSONInterface.cxx.

◆ val_t() [3/4]

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

Definition at line 75 of file JSONInterface.cxx.

◆ val_t() [4/4]

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

Definition at line 80 of file JSONInterface.cxx.

◆ 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 80 of file JSONInterface.h.


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