16 auto newCols = std::make_shared<RCustomColumnBasePtrMap_t>(
GetColumns());
17 (*newCols)[std::string(
name)] = column;
23 auto newColsNames = std::make_shared<ColumnNames_t>(
GetNames());
24 newColsNames->emplace_back(std::string(
name));
RCustomColumnBasePtrMapPtr_t fCustomColumns
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.
ColumnNamesPtr_t fCustomColumnsNames
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
Namespace for new ROOT classes and functions.