Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::Experimental::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 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
 
template<class T >
JSONNodeoperator<< (const std::vector< T > &v)
 
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 float val_float () const
 
virtual int val_int () const
 
template<class T >
val_t () const
 
template<>
int val_t () const
 
template<>
float 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 <RooFitHS3/JSONInterface.h>

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

Member Typedef Documentation

◆ child_iterator

◆ children_view

◆ const_child_iterator

◆ const_children_view

Member Function Documentation

◆ append_child()

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

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

◆ child() [1/2]

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

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

◆ child() [2/2]

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

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

◆ children() [1/2]

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

Reimplemented in TJSONTree::Node.

Definition at line 47 of file JSONInterface.cxx.

◆ children() [2/2]

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

Reimplemented in TJSONTree::Node.

Definition at line 52 of file JSONInterface.cxx.

◆ has_child()

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

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

◆ has_key()

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

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

◆ has_val()

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

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

◆ is_container()

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

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

◆ is_map()

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

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

◆ is_seq()

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

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

◆ key()

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

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

◆ num_children()

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

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

◆ operator<<() [1/4]

template<class T >
JSONNode & RooFit::Experimental::JSONNode::operator<< ( const std::vector< T > &  v)
inline

Definition at line 87 of file JSONInterface.h.

◆ operator<<() [2/4]

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

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

◆ operator<<() [3/4]

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

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

◆ operator<<() [4/4]

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

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

◆ operator>>()

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

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

◆ operator[]() [1/4]

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

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

◆ operator[]() [2/4]

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

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

◆ operator[]() [3/4]

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

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

◆ operator[]() [4/4]

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

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

◆ set_map()

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

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

◆ set_seq()

virtual void RooFit::Experimental::JSONNode::set_seq ( )
pure virtual

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

◆ val()

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

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

◆ val_bool()

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

Reimplemented in TJSONTree::Node.

Definition at line 110 of file JSONInterface.h.

◆ val_float()

virtual float RooFit::Experimental::JSONNode::val_float ( ) const
inlinevirtual

Reimplemented in TJSONTree::Node.

Definition at line 109 of file JSONInterface.h.

◆ val_int()

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

Reimplemented in TJSONTree::Node.

Definition at line 108 of file JSONInterface.h.

◆ val_t() [1/5]

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

◆ val_t() [2/5]

template<>
int RooFit::Experimental::JSONNode::val_t ( ) const

Definition at line 65 of file JSONInterface.cxx.

◆ val_t() [3/5]

template<>
float RooFit::Experimental::JSONNode::val_t ( ) const

Definition at line 70 of file JSONInterface.cxx.

◆ val_t() [4/5]

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

Definition at line 75 of file JSONInterface.cxx.

◆ val_t() [5/5]

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

Definition at line 80 of file JSONInterface.cxx.

◆ writeJSON()

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

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

◆ writeYML()

virtual void RooFit::Experimental::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: