15 auto newCols = std::make_shared<RCustomColumnBasePtrMap_t>(
GetColumns());
16 (*newCols)[std::string(
name)] = column;
22 auto newColsNames = std::make_shared<ColumnNames_t>(
GetNames());
23 newColsNames->emplace_back(
name);
bool HasName(std::string name) const
Check if the provided name is tracked in the names list.
RCustomColumnBasePtrMapPtr_t fCustomColumns
ColumnNames_t GetNames() const
Returns the list of the names of the defined columns.
ColumnNamesPtr_t fCustomColumnsNames
void AddColumn(const std::shared_ptr< RDFDetail::RCustomColumnBase > &column, const std::string_view &name)
Internally it recreates the map with the new column, and swaps with the old one.
void AddName(const std::string_view &name)
Internally it recreates the map with the new column name, and swaps with the old one.
RCustomColumnBasePtrMap_t GetColumns() const
Returns the list of the pointers to the defined columns.
Namespace for new ROOT classes and functions.
basic_string_view< char > string_view