Class behaving as a heterogenuous dictionary to store dataset metadata.
This class should be passed to an RSample object which represents a single dataset sample. Once a dataframe is built with RMetaData object, it could be accessed via DefinePerSample.
Definition at line 40 of file RMetaData.hxx.
Public Member Functions | |
RMetaData () | |
RMetaData (RMetaData &&) | |
RMetaData (RMetaData const &) | |
~RMetaData () | |
void | Add (const std::string &key, const std::string &val) |
void | Add (const std::string &key, double val) |
void | Add (const std::string &key, int val) |
std::string | Dump (const std::string &key) const |
double | GetD (const std::string &key) const |
double | GetD (const std::string &key, double defaultVal) const |
int | GetI (const std::string &key) const |
int | GetI (const std::string &key, int defaultVal) const |
std::string | GetS (const std::string &key) const |
const std::string | GetS (const std::string &key, const std::string &defaultVal) const |
RMetaData & | operator= (RMetaData &&) |
RMetaData & | operator= (RMetaData const &) |
Private Attributes | |
std::unique_ptr< Internal::RDF::RMetaDataJson > | fJson |
#include <ROOT/RDF/RMetaData.hxx>
ROOT::RDF::Experimental::RMetaData::RMetaData | ( | ) |
Definition at line 23 of file RMetaData.cxx.
ROOT::RDF::Experimental::RMetaData::RMetaData | ( | RMetaData const & | other | ) |
Definition at line 25 of file RMetaData.cxx.
|
default |
|
default |
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
const std::string & | val | ||
) |
Definition at line 49 of file RMetaData.cxx.
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
double | val | ||
) |
Definition at line 44 of file RMetaData.cxx.
void ROOT::RDF::Experimental::RMetaData::Add | ( | const std::string & | key, |
int | val | ||
) |
Definition at line 39 of file RMetaData.cxx.
std::string ROOT::RDF::Experimental::RMetaData::Dump | ( | const std::string & | key | ) | const |
Definition at line 54 of file RMetaData.cxx.
double ROOT::RDF::Experimental::RMetaData::GetD | ( | const std::string & | key | ) | const |
Definition at line 68 of file RMetaData.cxx.
double ROOT::RDF::Experimental::RMetaData::GetD | ( | const std::string & | key, |
double | defaultVal | ||
) | const |
Definition at line 95 of file RMetaData.cxx.
int ROOT::RDF::Experimental::RMetaData::GetI | ( | const std::string & | key | ) | const |
Definition at line 59 of file RMetaData.cxx.
Definition at line 86 of file RMetaData.cxx.
std::string ROOT::RDF::Experimental::RMetaData::GetS | ( | const std::string & | key | ) | const |
Definition at line 77 of file RMetaData.cxx.
const std::string ROOT::RDF::Experimental::RMetaData::GetS | ( | const std::string & | key, |
const std::string & | defaultVal | ||
) | const |
Definition at line 104 of file RMetaData.cxx.
Definition at line 29 of file RMetaData.cxx.
|
private |
Definition at line 65 of file RMetaData.hxx.