Project
Loading...
Searching...
No Matches
o2::framework::data_matcher::ValueHolder< T > Class Template Reference

#include <DataDescriptorMatcher.h>

Public Member Functions

 ValueHolder (T const &s)
 
 ValueHolder (ContextRef variableId)
 
bool operator== (ValueHolder< T > const &other) const
 
template<typename VISITOR >
decltype(auto) visit (VISITOR visitor) const
 

Protected Attributes

std::variant< T, ContextRefmValue
 

Friends

template<typename V >
std::ostream & operator<< (std::ostream &os, ValueHolder< V > const &holder)
 

Detailed Description

template<typename T>
class o2::framework::data_matcher::ValueHolder< T >

Can hold either an actual value of type T or a reference to a variable of the same type in the Context.

Definition at line 121 of file DataDescriptorMatcher.h.

Constructor & Destructor Documentation

◆ ValueHolder() [1/2]

template<typename T >
o2::framework::data_matcher::ValueHolder< T >::ValueHolder ( T const &  s)
inline

◆ ValueHolder() [2/2]

template<typename T >
o2::framework::data_matcher::ValueHolder< T >::ValueHolder ( ContextRef  variableId)
inline

This means that the matcher will fill a variable in the context if the ref points to none or use the dereferenced value, if not.

Member Function Documentation

◆ operator==()

template<typename T >
bool o2::framework::data_matcher::ValueHolder< T >::operator== ( ValueHolder< T > const &  other) const
inline

◆ visit()

template<typename T >
template<typename VISITOR >
decltype(auto) o2::framework::data_matcher::ValueHolder< T >::visit ( VISITOR  visitor) const
inline

Definition at line 136 of file DataDescriptorMatcher.h.

Friends And Related Symbol Documentation

◆ operator<<

template<typename T >
template<typename V >
std::ostream & operator<< ( std::ostream &  os,
ValueHolder< V > const &  holder 
)
friend

Member Data Documentation

◆ mValue

template<typename T >
std::variant<T, ContextRef> o2::framework::data_matcher::ValueHolder< T >::mValue
protected

Definition at line 147 of file DataDescriptorMatcher.h.


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