Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::HS3::Cursor Class Reference

A position in the JSON tree.

Keeps track of how it got there, in order to create the paths in error messages only when they are needed.

Definition at line 32 of file HS3Schema.h.

Public Member Functions

 Cursor (Detail::JSONNode const &node, Cursor const &parent, const char *key)
 
 Cursor (Detail::JSONNode const &node, Cursor const &parent, std::size_t index)
 
 Cursor (Detail::JSONNode const &node, Diagnostics &diagnostics)
 
void error (std::string const &message) const
 
Detail::JSONNode const & node () const
 
std::size_t numErrors () const
 
std::string path () const
 
void warning (std::string const &message) const
 

Private Attributes

Diagnostics & _diagnostics
 
std::size_t _index = 0
 
const char * _key = nullptr
 
Detail::JSONNode const & _node
 
Cursor const * _parent = nullptr
 

#include </github/home/ROOT-CI/src/roofit/hs3/src/HS3Schema.h>

Constructor & Destructor Documentation

◆ Cursor() [1/3]

RooFit::HS3::Cursor::Cursor ( Detail::JSONNode const & node,
Diagnostics & diagnostics )
inline

Definition at line 34 of file HS3Schema.h.

◆ Cursor() [2/3]

RooFit::HS3::Cursor::Cursor ( Detail::JSONNode const & node,
Cursor const & parent,
const char * key )
inline

Definition at line 35 of file HS3Schema.h.

◆ Cursor() [3/3]

RooFit::HS3::Cursor::Cursor ( Detail::JSONNode const & node,
Cursor const & parent,
std::size_t index )
inline

Definition at line 39 of file HS3Schema.h.

Member Function Documentation

◆ error()

void RooFit::HS3::Cursor::error ( std::string const & message) const

Definition at line 120 of file HS3Parser.cxx.

◆ node()

Detail::JSONNode const & RooFit::HS3::Cursor::node ( ) const
inline

Definition at line 44 of file HS3Schema.h.

◆ numErrors()

std::size_t RooFit::HS3::Cursor::numErrors ( ) const

Definition at line 130 of file HS3Parser.cxx.

◆ path()

std::string RooFit::HS3::Cursor::path ( ) const

Definition at line 100 of file HS3Parser.cxx.

◆ warning()

void RooFit::HS3::Cursor::warning ( std::string const & message) const

Definition at line 125 of file HS3Parser.cxx.

Member Data Documentation

◆ _diagnostics

Diagnostics& RooFit::HS3::Cursor::_diagnostics
private

Definition at line 52 of file HS3Schema.h.

◆ _index

std::size_t RooFit::HS3::Cursor::_index = 0
private

Definition at line 55 of file HS3Schema.h.

◆ _key

const char* RooFit::HS3::Cursor::_key = nullptr
private

Definition at line 54 of file HS3Schema.h.

◆ _node

Detail::JSONNode const& RooFit::HS3::Cursor::_node
private

Definition at line 51 of file HS3Schema.h.

◆ _parent

Cursor const* RooFit::HS3::Cursor::_parent = nullptr
private

Definition at line 53 of file HS3Schema.h.

  • roofit/hs3/src/HS3Schema.h
  • roofit/hs3/src/HS3Parser.cxx