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 98 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

class ::ROOT::RDF::RResultHandle
 
std::unique_ptr< ROOT::Detail::RDF::RMergeableVariations< T > > ROOT::Detail::RDF::GetMergeableValue (RResultMap< T > &rmap)
 
RResultMap ROOT::Internal::RDF::CloneResultAndAction (const RResultMap< T > &inmap)
 
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 144 of file RResultMap.hxx.

◆ iterator

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

Definition at line 143 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 119 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 159 of file RResultMap.hxx.

◆ cbegin()

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

Definition at line 165 of file RResultMap.hxx.

◆ cend()

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

Definition at line 177 of file RResultMap.hxx.

◆ end()

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

Definition at line 171 of file RResultMap.hxx.

◆ GetKeys()

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

Definition at line 183 of file RResultMap.hxx.

◆ operator[]()

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

Definition at line 147 of file RResultMap.hxx.

◆ RunEventLoopIfNeeded()

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

Definition at line 136 of file RResultMap.hxx.

Friends And Related Symbol Documentation

◆ ::ROOT::RDF::RResultHandle

template<typename T >
friend class ::ROOT::RDF::RResultHandle
friend

Definition at line 116 of file RResultMap.hxx.

◆ 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::CloneResultAndAction

template<typename T >
RResultMap ROOT::Internal::RDF::CloneResultAndAction ( const RResultMap< T > &  inmap)
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 100 of file RResultMap.hxx.

◆ fLoopManager

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

Definition at line 102 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 101 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 103 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 104 of file RResultMap.hxx.

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