Logo ROOT  
Reference Guide
RDFBookedCustomColumns.cxx
Go to the documentation of this file.
2
3namespace ROOT {
4namespace Internal {
5namespace RDF {
6
8{
9 const auto ccolnamesEnd = fCustomColumnsNames->end();
10 return ccolnamesEnd != std::find(fCustomColumnsNames->begin(), ccolnamesEnd, name);
11}
12
13void RBookedCustomColumns::AddColumn(const std::shared_ptr<RDFDetail::RCustomColumnBase> &column,
15{
16 auto newCols = std::make_shared<RCustomColumnBasePtrMap_t>(GetColumns());
17 (*newCols)[std::string(name)] = column;
18 fCustomColumns = newCols;
19}
20
22{
23 auto newColsNames = std::make_shared<ColumnNames_t>(GetNames());
24 newColsNames->emplace_back(std::string(name));
25 fCustomColumnsNames = newColsNames;
26}
27
28} // namespace RDF
29} // namespace Internal
30} // namespace ROOT
char name[80]
Definition: TGX11.cxx:109
void AddColumn(const std::shared_ptr< RDFDetail::RCustomColumnBase > &column, std::string_view name)
Internally it recreates the map with the new column, and swaps with the old one.
ColumnNames_t GetNames() const
Returns the list of the names of the defined columns.
bool HasName(std::string_view name) const
Check if the provided name is tracked in the names list.
const RCustomColumnBasePtrMap_t & GetColumns() const
Returns the list of the pointers to the defined columns.
void AddName(std::string_view name)
Internally it recreates the map with the new column name, and swaps with the old one.
basic_string_view< char > string_view
VSD Structures.
Definition: StringConv.hxx:21