Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RDFBookedDefines.cxx
Go to the documentation of this file.
2
3namespace ROOT {
4namespace Internal {
5namespace RDF {
6
7bool RBookedDefines::HasName(std::string_view name) const
8{
9 const auto ccolnamesEnd = fDefinesNames->end();
10 return ccolnamesEnd != std::find(fDefinesNames->begin(), ccolnamesEnd, name);
11}
12
13void RBookedDefines::AddColumn(const std::shared_ptr<RDFDetail::RDefineBase> &column, std::string_view name)
14{
15 auto newCols = std::make_shared<RDefineBasePtrMap_t>(GetColumns());
16 const std::string colName(name);
17 (*newCols)[colName] = column;
18 fDefines = newCols;
19 AddName(colName);
20}
21
22void RBookedDefines::AddName(std::string_view name)
23{
24 auto newColsNames = std::make_shared<ColumnNames_t>(GetNames());
25 newColsNames->emplace_back(std::string(name));
26 fDefinesNames = newColsNames;
27}
28
29} // namespace RDF
30} // namespace Internal
31} // namespace ROOT
char name[80]
Definition TGX11.cxx:110
bool HasName(std::string_view name) const
Check if the provided name is tracked in the names list.
void AddColumn(const std::shared_ptr< RDFDetail::RDefineBase > &column, std::string_view name)
Add a new booked column.
const RDefineBasePtrMap_t & GetColumns() const
Returns the list of the pointers to the defined columns.
ColumnNames_t GetNames() const
Returns the list of the names of the defined columns.
void AddName(std::string_view name)
Add a new name to the list returned by GetNames without booking a new column.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...