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

Records which components of a JSON map are read while it is alive, through any node of the tree.

Like that, the components that no importer understands can be reported without any change to the importers. Iterating over the components or writing the map counts as reading all of them.

Definition at line 28 of file JSONReadRecorder.h.

Public Member Functions

 JSONReadRecorder (JSONNode const &node)
 
 JSONReadRecorder (JSONReadRecorder const &)=delete
 
 ~JSONReadRecorder ()
 
JSONReadRecorder & operator= (JSONReadRecorder const &)=delete
 
void record (void const *value, std::string const *key)
 Called by the tree for every read of the component key of value, where nullptr means all components.
 
std::vector< std::string > unreadComponents () const
 The components of the map that were not read.
 

Private Attributes

JSONNode const & _node
 
std::set< std::string > _read
 
bool _readAll = false
 

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

Constructor & Destructor Documentation

◆ JSONReadRecorder() [1/2]

RooFit::Detail::JSONReadRecorder::JSONReadRecorder ( JSONNode const & node)
explicit

Definition at line 366 of file JSONInterface.cxx.

◆ ~JSONReadRecorder()

RooFit::Detail::JSONReadRecorder::~JSONReadRecorder ( )

Definition at line 371 of file JSONInterface.cxx.

◆ JSONReadRecorder() [2/2]

RooFit::Detail::JSONReadRecorder::JSONReadRecorder ( JSONReadRecorder const & )
delete

Member Function Documentation

◆ operator=()

JSONReadRecorder & RooFit::Detail::JSONReadRecorder::operator= ( JSONReadRecorder const & )
delete

◆ record()

void RooFit::Detail::JSONReadRecorder::record ( void const * value,
std::string const * key )

Called by the tree for every read of the component key of value, where nullptr means all components.

Definition at line 377 of file JSONInterface.cxx.

◆ unreadComponents()

std::vector< std::string > RooFit::Detail::JSONReadRecorder::unreadComponents ( ) const

The components of the map that were not read.

Definition at line 389 of file JSONInterface.cxx.

Member Data Documentation

◆ _node

JSONNode const& RooFit::Detail::JSONReadRecorder::_node
private

Definition at line 42 of file JSONReadRecorder.h.

◆ _read

std::set<std::string> RooFit::Detail::JSONReadRecorder::_read
private

Definition at line 43 of file JSONReadRecorder.h.

◆ _readAll

bool RooFit::Detail::JSONReadRecorder::_readAll = false
private

Definition at line 44 of file JSONReadRecorder.h.

  • roofit/hs3/src/JSONReadRecorder.h
  • roofit/hs3/src/JSONInterface.cxx