Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::RDF::Experimental::RResultMap< T > Class Template Reference

template<typename T>
class ROOT::RDF::Experimental::RResultMap< T >

Definition at line 63 of file RResultMap.hxx.

Public Types

using const_iterator = typename decltype(fMap)::const_iterator
 
using iterator = typename decltype(fMap)::iterator
 

Public Member Functions

iterator begin ()
 Iterator to walk through key-value pairs of all variations for a given object.
 
const_iterator cbegin ()
 
const_iterator cend () const
 
iterator end ()
 
const std::vector< std::string > & GetKeys () const
 
T & operator[] (const std::string &key)
 

Private Member Functions

 RResultMap (std::shared_ptr< T > &&nominalResult, std::vector< std::shared_ptr< T > > &&variedResults, std::vector< std::string > &&keys, ROOT::Detail::RDF::RLoopManager &lm, std::shared_ptr< ROOT::Internal::RDF::RActionBase > nominalAction, std::shared_ptr< ROOT::Internal::RDF::RActionBase > variedAction)
 
void RunEventLoopIfNeeded ()
 

Private Attributes

std::vector< std::string > fKeys
 
ROOT::Detail::RDF::RLoopManagerfLoopManager
 
std::unordered_map< std::string, std::shared_ptr< T > > fMap
 
std::shared_ptr< ROOT::Internal::RDF::RActionBasefNominalAction
 
std::shared_ptr< ROOT::Internal::RDF::RActionBasefVariedAction
 

Friends

std::unique_ptr< ROOT::Detail::RDF::RMergeableVariations< T > > ROOT::Detail::RDF::GetMergeableValue (RResultMap< T > &rmap)
 
RResultMap ROOT::Internal::RDF::MakeResultMap (std::shared_ptr< T > nominalResult, std::vector< std::shared_ptr< T > > &&variedResults, std::vector< std::string > &&keys, ROOT::Detail::RDF::RLoopManager &lm, std::shared_ptr< ROOT::Internal::RDF::RActionBase > nominalAction, std::shared_ptr< ROOT::Internal::RDF::RActionBase > variedAction)
 

#include <ROOT/RDF/RResultMap.hxx>

Member Typedef Documentation

◆ const_iterator

template<typename T >
using ROOT::RDF::Experimental::RResultMap< T >::const_iterator = typename decltype(fMap)::const_iterator

Definition at line 107 of file RResultMap.hxx.

◆ iterator

template<typename T >
using ROOT::RDF::Experimental::RResultMap< T >::iterator = typename decltype(fMap)::iterator

Definition at line 106 of file RResultMap.hxx.

Constructor & Destructor Documentation

◆ RResultMap()

template<typename T >
ROOT::RDF::Experimental::RResultMap< T >::RResultMap ( std::shared_ptr< T > &&  nominalResult,
std::vector< std::shared_ptr< T > > &&  variedResults,
std::vector< std::string > &&  keys,
ROOT::Detail::RDF::RLoopManager lm,
std::shared_ptr< ROOT::Internal::RDF::RActionBase nominalAction,
std::shared_ptr< ROOT::Internal::RDF::RActionBase variedAction 
)
inlineprivate

Definition at line 82 of file RResultMap.hxx.

Member Function Documentation

◆ begin()

template<typename T >
iterator ROOT::RDF::Experimental::RResultMap< T >::begin ( )
inline

Iterator to walk through key-value pairs of all variations for a given object.

Runs the event loop before returning if necessary.

Definition at line 122 of file RResultMap.hxx.

◆ cbegin()

template<typename T >
const_iterator ROOT::RDF::Experimental::RResultMap< T >::cbegin ( )
inline

Definition at line 128 of file RResultMap.hxx.

◆ cend()

template<typename T >
const_iterator ROOT::RDF::Experimental::RResultMap< T >::cend ( ) const
inline

Definition at line 140 of file RResultMap.hxx.

◆ end()

template<typename T >
iterator ROOT::RDF::Experimental::RResultMap< T >::end ( )
inline

Definition at line 134 of file RResultMap.hxx.

◆ GetKeys()

template<typename T >
const std::vector< std::string > & ROOT::RDF::Experimental::RResultMap< T >::GetKeys ( ) const
inline

Definition at line 146 of file RResultMap.hxx.

◆ operator[]()

template<typename T >
T & ROOT::RDF::Experimental::RResultMap< T >::operator[] ( const std::string &  key)
inline

Definition at line 110 of file RResultMap.hxx.

◆ RunEventLoopIfNeeded()

template<typename T >
void ROOT::RDF::Experimental::RResultMap< T >::RunEventLoopIfNeeded ( )
inlineprivate

Definition at line 99 of file RResultMap.hxx.

Friends And Related Symbol Documentation

◆ ROOT::Detail::RDF::GetMergeableValue

template<typename T >
std::unique_ptr< ROOT::Detail::RDF::RMergeableVariations< T > > ROOT::Detail::RDF::GetMergeableValue ( RResultMap< T > &  rmap)
friend

◆ ROOT::Internal::RDF::MakeResultMap

template<typename T >
RResultMap ROOT::Internal::RDF::MakeResultMap ( std::shared_ptr< T >  nominalResult,
std::vector< std::shared_ptr< T > > &&  variedResults,
std::vector< std::string > &&  keys,
ROOT::Detail::RDF::RLoopManager lm,
std::shared_ptr< ROOT::Internal::RDF::RActionBase nominalAction,
std::shared_ptr< ROOT::Internal::RDF::RActionBase variedAction 
)
friend

Member Data Documentation

◆ fKeys

template<typename T >
std::vector<std::string> ROOT::RDF::Experimental::RResultMap< T >::fKeys
private

Definition at line 65 of file RResultMap.hxx.

◆ fLoopManager

template<typename T >
ROOT::Detail::RDF::RLoopManager* ROOT::RDF::Experimental::RResultMap< T >::fLoopManager
private

Definition at line 67 of file RResultMap.hxx.

◆ fMap

template<typename T >
std::unordered_map<std::string, std::shared_ptr<T> > ROOT::RDF::Experimental::RResultMap< T >::fMap
private

Definition at line 66 of file RResultMap.hxx.

◆ fNominalAction

template<typename T >
std::shared_ptr<ROOT::Internal::RDF::RActionBase> ROOT::RDF::Experimental::RResultMap< T >::fNominalAction
private

Definition at line 68 of file RResultMap.hxx.

◆ fVariedAction

template<typename T >
std::shared_ptr<ROOT::Internal::RDF::RActionBase> ROOT::RDF::Experimental::RResultMap< T >::fVariedAction
private

Definition at line 69 of file RResultMap.hxx.

  • tree/dataframe/inc/ROOT/RDF/RResultMap.hxx