Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Utils.hxx File Reference
#include "ROOT/RSpan.hxx"
#include "ROOT/RStringView.hxx"
#include "ROOT/RVec.hxx"
#include "ROOT/TypeTraits.hxx"
#include "Rtypes.h"
#include <array>
#include <deque>
#include <functional>
#include <memory>
#include <new>
#include <string>
#include <type_traits>
#include <vector>
Include dependency graph for Utils.hxx:
This graph shows which files directly or indirectly include this file:

Classes

struct  ROOT::Internal::RDF::CallGuaranteedOrder
 Struct to wrap the call to a function with a guaranteed order of execution of its arguments. More...
 
struct  ROOT::Internal::RDF::Disjunction<... >
 
struct  ROOT::Internal::RDF::Disjunction< B1 >
 
struct  ROOT::Internal::RDF::Disjunction< B1, Bn... >
 
struct  ROOT::Internal::RDF::IsDataContainer< T >
 Check for container traits. More...
 
struct  ROOT::Internal::RDF::IsDataContainer< ROOT::VecOps::RVec< bool > >
 
struct  ROOT::Internal::RDF::IsVector_t< typename >
 Detect whether a type is an instantiation of vector<T,A> More...
 
struct  ROOT::Internal::RDF::RemoveFirstParameterIf< MustRemove, TypeList >
 type is TypeList if MustRemove is false, otherwise it is a TypeList with the first type removed More...
 
struct  ROOT::Internal::RDF::RemoveFirstParameterIf< true, TypeList >
 
struct  ROOT::Internal::RDF::RemoveFirstTwoParametersIf< MustRemove, TypeList >
 
struct  ROOT::Internal::RDF::RemoveFirstTwoParametersIf< true, TypeList >
 
struct  ROOT::Detail::RDF::RInferredType
 
struct  ROOT::Internal::RDF::ValueType< T, IsDataContainer >
 
struct  ROOT::Internal::RDF::ValueType< ROOT::VecOps::RVec< T >, false >
 
struct  ROOT::Internal::RDF::ValueType< T, false >
 

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 
namespace  ROOT::Detail
 Special implementation of ROOT::RRangeCast for TCollection, including a check that the cast target type inherits from TObject and a new constructor that takes the TCollection by pointer.
 
namespace  ROOT::Detail::RDF
 
namespace  ROOT::Experimental
 
namespace  ROOT::Internal
 
namespace  ROOT::Internal::RDF
 
namespace  ROOT::RDF
 

Typedefs

template<bool MustRemove, typename TypeList >
using ROOT::Internal::RDF::RemoveFirstParameterIf_t = typename RemoveFirstParameterIf< MustRemove, TypeList >::type
 
template<bool MustRemove, typename TypeList >
using ROOT::Internal::RDF::RemoveFirstTwoParametersIf_t = typename RemoveFirstTwoParametersIf< MustRemove, TypeList >::type
 

Functions

template<typename T >
constexpr std::size_t ROOT::Internal::RDF::CacheLineStep ()
 Stepping through CacheLineStep<T> values in a vector<T> brings you to a new cache line.
 
void ROOT::Internal::RDF::CheckReaderTypeMatches (const std::type_info &colType, const std::type_info &requestedType, const std::string &colName)
 
std::string ROOT::Internal::RDF::ColumnName2ColumnTypeName (const std::string &colName, TTree *tree, RDataSource *ds, RDefineBase *define, bool vector2rvec)
 Return a string containing the type of the given branch.
 
template<typename T >
void ROOT::Internal::RDF::Erase (const T &that, std::vector< T > &v)
 Erase that element from vector v
 
template<typename T >
constexpr std::size_t ROOT::Internal::RDF::FindIdxTrue (const T &arr)
 
unsigned int ROOT::Internal::RDF::GetColumnWidth (const std::vector< std::string > &names, const unsigned int minColumnSpace=8u)
 Get optimal column width for printing a table given the names and the desired minimal space between columns.
 
unsigned int ROOT::Internal::RDF::GetNSlots ()
 
template<std::size_t N, typename... Ts>
decltype(auto) ROOT::Internal::RDF::GetNthElement (Ts &&...args)
 
Long64_t ROOT::Internal::RDF::InterpreterCalc (const std::string &code, const std::string &context="")
 Jit code in the interpreter with TInterpreter::Calc, throw in case of errors.
 
void ROOT::Internal::RDF::InterpreterDeclare (const std::string &code)
 Declare code in the interpreter via the TInterpreter::Declare method, throw in case of errors.
 
bool ROOT::Internal::RDF::IsInternalColumn (std::string_view colName)
 Whether custom column with name colName is an "internal" column such as rdfentry_ or rdfslot_.
 
bool ROOT::Internal::RDF::IsStrInVec (const std::string &str, const std::vector< std::string > &vec)
 
ROOT::Experimental::RLogChannelROOT::Detail::RDF::RDFLogChannel ()
 
std::vector< std::string > ROOT::Internal::RDF::ReplaceDotWithUnderscore (const std::vector< std::string > &columnNames)
 Replace occurrences of '.
 
std::string ROOT::Internal::RDF::TypeID2TypeName (const std::type_info &id)
 Returns the name of a type starting from its type_info An empty string is returned in case of failure References and pointers are not supported since those cannot be stored in columns.
 
char ROOT::Internal::RDF::TypeName2ROOTTypeName (const std::string &b)
 Convert type name (e.g.
 
const std::type_info & ROOT::Internal::RDF::TypeName2TypeID (const std::string &name)
 Return the type_info associated to a name.
 
template<typename T >
std::vector< T > ROOT::Internal::RDF::Union (const std::vector< T > &v1, const std::vector< T > &v2)
 Return a vector with all elements of v1 and v2 and duplicates removed.
 

Variables

static constexpr std::size_t ROOT::Internal::RDF::kCacheLineSize = 64