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

#include <DataDescriptorMatcher.h>

Public Types

enum struct  Op {
  Just , Not , Or , And ,
  Xor
}
 

Public Member Functions

 DataDescriptorMatcher (DataDescriptorMatcher const &other)
 
 DataDescriptorMatcher (DataDescriptorMatcher &&other)=default
 
DataDescriptorMatcheroperator= (DataDescriptorMatcher const &other)
 
DataDescriptorMatcheroperator= (DataDescriptorMatcher &&other)=default
 
 DataDescriptorMatcher (Op op, Node &&lhs, Node &&rhs=ConstantValueMatcher{false})
 Unary operator on a node.
 
 ~DataDescriptorMatcher ()=default
 
bool match (ConcreteDataMatcher const &matcher, VariableContext &context) const
 
bool match (ConcreteDataTypeMatcher const &matcher, VariableContext &context) const
 
bool match (header::DataHeader const &header, VariableContext &context) const
 
bool match (header::Stack const &stack, VariableContext &context) const
 
bool match (char const *d, VariableContext &context) const
 
bool operator== (DataDescriptorMatcher const &other) const
 
Node const & getLeft () const
 
Node const & getRight () const
 
NodegetLeft ()
 
NodegetRight ()
 
Op getOp () const
 

Friends

std::ostream & operator<< (std::ostream &os, DataDescriptorMatcher const &matcher)
 
std::ostream & operator<< (std::ostream &os, Op const &matcher)
 

Detailed Description

Definition at line 260 of file DataDescriptorMatcher.h.

Member Enumeration Documentation

◆ Op

Enumerator
Just 
Not 
Or 
And 
Xor 

Definition at line 263 of file DataDescriptorMatcher.h.

Constructor & Destructor Documentation

◆ DataDescriptorMatcher() [1/3]

o2::framework::data_matcher::DataDescriptorMatcher::DataDescriptorMatcher ( DataDescriptorMatcher const &  other)

We treat all the nodes as values, hence we copy the contents mLeft and mRight into a new unique_ptr, if needed.

Definition at line 145 of file DataDescriptorMatcher.cxx.

◆ DataDescriptorMatcher() [2/3]

o2::framework::data_matcher::DataDescriptorMatcher::DataDescriptorMatcher ( DataDescriptorMatcher &&  other)
default

◆ DataDescriptorMatcher() [3/3]

o2::framework::data_matcher::DataDescriptorMatcher::DataDescriptorMatcher ( Op  op,
Node &&  lhs,
Node &&  rhs = ConstantValueMatcher{false} 
)

Unary operator on a node.

Definition at line 190 of file DataDescriptorMatcher.cxx.

◆ ~DataDescriptorMatcher()

o2::framework::data_matcher::DataDescriptorMatcher::~DataDescriptorMatcher ( )
inlinedefault

Member Function Documentation

◆ getLeft() [1/2]

Node & o2::framework::data_matcher::DataDescriptorMatcher::getLeft ( )
inline

Definition at line 302 of file DataDescriptorMatcher.h.

◆ getLeft() [2/2]

Node const & o2::framework::data_matcher::DataDescriptorMatcher::getLeft ( ) const
inline

Definition at line 300 of file DataDescriptorMatcher.h.

◆ getOp()

Op o2::framework::data_matcher::DataDescriptorMatcher::getOp ( ) const
inline

Definition at line 304 of file DataDescriptorMatcher.h.

◆ getRight() [1/2]

Node & o2::framework::data_matcher::DataDescriptorMatcher::getRight ( )
inline

Definition at line 303 of file DataDescriptorMatcher.h.

◆ getRight() [2/2]

Node const & o2::framework::data_matcher::DataDescriptorMatcher::getRight ( ) const
inline

Definition at line 301 of file DataDescriptorMatcher.h.

◆ match() [1/5]

bool o2::framework::data_matcher::DataDescriptorMatcher::match ( char const *  d,
VariableContext context 
) const

Definition at line 239 of file DataDescriptorMatcher.cxx.

◆ match() [2/5]

bool o2::framework::data_matcher::DataDescriptorMatcher::match ( ConcreteDataMatcher const &  matcher,
VariableContext context 
) const
Returns
true if the (sub-)query associated to this matcher will match the provided spec, false otherwise. FIXME: these are not really part of the DataDescriptorMatcher API and should really be relegated to external helpers...
true if the (sub-)query associated to this matcher will match the provided spec, false otherwise.

Definition at line 199 of file DataDescriptorMatcher.cxx.

◆ match() [3/5]

bool o2::framework::data_matcher::DataDescriptorMatcher::match ( ConcreteDataTypeMatcher const &  matcher,
VariableContext context 
) const
Returns
true if the (sub-)query associated to this matcher will match the provided spec, false otherwise.

Definition at line 214 of file DataDescriptorMatcher.cxx.

◆ match() [4/5]

bool o2::framework::data_matcher::DataDescriptorMatcher::match ( header::DataHeader const &  header,
VariableContext context 
) const

Definition at line 227 of file DataDescriptorMatcher.cxx.

◆ match() [5/5]

bool o2::framework::data_matcher::DataDescriptorMatcher::match ( header::Stack const &  stack,
VariableContext context 
) const

Definition at line 232 of file DataDescriptorMatcher.cxx.

◆ operator=() [1/2]

DataDescriptorMatcher & o2::framework::data_matcher::DataDescriptorMatcher::operator= ( DataDescriptorMatcher &&  other)
default

◆ operator=() [2/2]

DataDescriptorMatcher & o2::framework::data_matcher::DataDescriptorMatcher::operator= ( DataDescriptorMatcher const &  other)

Definition at line 184 of file DataDescriptorMatcher.cxx.

◆ operator==()

bool o2::framework::data_matcher::DataDescriptorMatcher::operator== ( DataDescriptorMatcher const &  other) const

Definition at line 351 of file DataDescriptorMatcher.cxx.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  os,
DataDescriptorMatcher const &  matcher 
)
friend

Definition at line 471 of file DataDescriptorMatcher.cxx.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  os,
DataDescriptorMatcher::Op const &  op 
)
friend

Definition at line 502 of file DataDescriptorMatcher.cxx.


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