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>
|
explicit |
Definition at line 366 of file JSONInterface.cxx.
| RooFit::Detail::JSONReadRecorder::~JSONReadRecorder | ( | ) |
Definition at line 371 of file JSONInterface.cxx.
|
delete |
|
delete |
| 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.
| 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.
|
private |
Definition at line 42 of file JSONReadRecorder.h.
|
private |
Definition at line 43 of file JSONReadRecorder.h.
|
private |
Definition at line 44 of file JSONReadRecorder.h.