Project
Loading...
Searching...
No Matches
o2::framework::data_matcher::VariableContext Class Reference

#include <DataDescriptorMatcher.h>

Public Member Functions

 VariableContext ()
 
ContextElement::Value const & get (size_t pos) const
 
void publish (void(*callback)(VariableContext const &, TimesliceSlot slot, void *context), void *context, TimesliceSlot slot)
 
void put (ContextUpdate &&update)
 
void commit ()
 
void discard ()
 
void reset ()
 

Detailed Description

Definition at line 78 of file DataDescriptorMatcher.h.

Constructor & Destructor Documentation

◆ VariableContext()

o2::framework::data_matcher::VariableContext::VariableContext ( )
inline

Member Function Documentation

◆ commit()

void o2::framework::data_matcher::VariableContext::commit ( )

Use this after a query to actually commit the matched fields. Notice the old matches remain there, but we do not need to clean them up as we have reset the counter. Use this after a successful query to persist matches variables and speedup subsequent lookups.

Definition at line 54 of file DataDescriptorMatcher.cxx.

◆ discard()

void o2::framework::data_matcher::VariableContext::discard ( )
inline

Discard the updates. Use this after a failed query if you do not want to retain partial matches.

◆ get()

ContextElement::Value const & o2::framework::data_matcher::VariableContext::get ( size_t  pos) const

Definition at line 25 of file DataDescriptorMatcher.cxx.

◆ publish()

void o2::framework::data_matcher::VariableContext::publish ( void(*)(VariableContext const &, TimesliceSlot slot, void *context)  callback,
void context,
TimesliceSlot  slot 
)

Publish the context to the GUI / monitoring. callback is a function which will be called for each element context is userdata which will be passed to the callback. name is the name of the metrics to be used.

Definition at line 37 of file DataDescriptorMatcher.cxx.

◆ put()

void o2::framework::data_matcher::VariableContext::put ( ContextUpdate &&  update)
inline

◆ reset()

void o2::framework::data_matcher::VariableContext::reset ( )

Reset the all the variables and updates, without having to tear down the context.

Definition at line 64 of file DataDescriptorMatcher.cxx.


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