Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Private Types | Private Attributes | List of all members
ROOT::Internal::RDF::RBookedCustomColumns Class Reference

Encapsulates the columns defined by the user.

Definition at line 39 of file RBookedCustomColumns.hxx.

Public Member Functions

 RBookedCustomColumns ()
 Creates a new wrapper with empty maps. More...
 
 RBookedCustomColumns (const RBookedCustomColumns &)=default
 Copy-ctor for RBookedCustomColumns. More...
 
 RBookedCustomColumns (RBookedCustomColumns &&)=default
 Move-ctor for RBookedCustomColumns. More...
 
 RBookedCustomColumns (RCustomColumnBasePtrMapPtr_t customColumns, ColumnNamesPtr_t customColumnNames)
 Creates the object starting from the provided maps. More...
 
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. More...
 
void AddName (std::string_view name)
 Internally it recreates the map with the new column name, and swaps with the old one. More...
 
const RCustomColumnBasePtrMap_tGetColumns () const
 Returns the list of the pointers to the defined columns. More...
 
ColumnNames_t GetNames () const
 Returns the list of the names of the defined columns. More...
 
bool HasName (std::string_view name) const
 Check if the provided name is tracked in the names list. More...
 
RBookedCustomColumnsoperator= (const RBookedCustomColumns &)=default
 Copy-assignment operator for RBookedCustomColumns. More...
 

Private Types

using ColumnNames_t = std::vector< std::string >
 
using ColumnNamesPtr_t = std::shared_ptr< const ColumnNames_t >
 
using RCustomColumnBasePtrMap_t = std::map< std::string, std::shared_ptr< RDFDetail::RCustomColumnBase > >
 
using RCustomColumnBasePtrMapPtr_t = std::shared_ptr< const RCustomColumnBasePtrMap_t >
 

Private Attributes

RCustomColumnBasePtrMapPtr_t fCustomColumns
 
ColumnNamesPtr_t fCustomColumnsNames
 

#include <ROOT/RDF/RBookedCustomColumns.hxx>

Member Typedef Documentation

◆ ColumnNames_t

using ROOT::Internal::RDF::RBookedCustomColumns::ColumnNames_t = std::vector<std::string>
private

Definition at line 41 of file RBookedCustomColumns.hxx.

◆ ColumnNamesPtr_t

Definition at line 45 of file RBookedCustomColumns.hxx.

◆ RCustomColumnBasePtrMap_t

Definition at line 40 of file RBookedCustomColumns.hxx.

◆ RCustomColumnBasePtrMapPtr_t

Definition at line 44 of file RBookedCustomColumns.hxx.

Constructor & Destructor Documentation

◆ RBookedCustomColumns() [1/4]

ROOT::Internal::RDF::RBookedCustomColumns::RBookedCustomColumns ( const RBookedCustomColumns )
default

Copy-ctor for RBookedCustomColumns.

◆ RBookedCustomColumns() [2/4]

ROOT::Internal::RDF::RBookedCustomColumns::RBookedCustomColumns ( RBookedCustomColumns &&  )
default

Move-ctor for RBookedCustomColumns.

◆ RBookedCustomColumns() [3/4]

ROOT::Internal::RDF::RBookedCustomColumns::RBookedCustomColumns ( RCustomColumnBasePtrMapPtr_t  customColumns,
ColumnNamesPtr_t  customColumnNames 
)
inline

Creates the object starting from the provided maps.

Definition at line 66 of file RBookedCustomColumns.hxx.

◆ RBookedCustomColumns() [4/4]

ROOT::Internal::RDF::RBookedCustomColumns::RBookedCustomColumns ( )
inline

Creates a new wrapper with empty maps.

Definition at line 73 of file RBookedCustomColumns.hxx.

Member Function Documentation

◆ AddColumn()

void ROOT::Internal::RDF::RBookedCustomColumns::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.

Definition at line 13 of file RDFBookedCustomColumns.cxx.

◆ AddName()

void ROOT::Internal::RDF::RBookedCustomColumns::AddName ( std::string_view  name)

Internally it recreates the map with the new column name, and swaps with the old one.

Definition at line 21 of file RDFBookedCustomColumns.cxx.

◆ GetColumns()

const RCustomColumnBasePtrMap_t & ROOT::Internal::RDF::RBookedCustomColumns::GetColumns ( ) const
inline

Returns the list of the pointers to the defined columns.

Definition at line 85 of file RBookedCustomColumns.hxx.

◆ GetNames()

ColumnNames_t ROOT::Internal::RDF::RBookedCustomColumns::GetNames ( ) const
inline

Returns the list of the names of the defined columns.

Definition at line 81 of file RBookedCustomColumns.hxx.

◆ HasName()

bool ROOT::Internal::RDF::RBookedCustomColumns::HasName ( std::string_view  name) const

Check if the provided name is tracked in the names list.

Definition at line 7 of file RDFBookedCustomColumns.cxx.

◆ operator=()

RBookedCustomColumns & ROOT::Internal::RDF::RBookedCustomColumns::operator= ( const RBookedCustomColumns )
default

Copy-assignment operator for RBookedCustomColumns.

Member Data Documentation

◆ fCustomColumns

RCustomColumnBasePtrMapPtr_t ROOT::Internal::RDF::RBookedCustomColumns::fCustomColumns
private

Definition at line 48 of file RBookedCustomColumns.hxx.

◆ fCustomColumnsNames

ColumnNamesPtr_t ROOT::Internal::RDF::RBookedCustomColumns::fCustomColumnsNames
private

Definition at line 49 of file RBookedCustomColumns.hxx.

Libraries for ROOT::Internal::RDF::RBookedCustomColumns:
[legend]

The documentation for this class was generated from the following files: