Project
Loading...
Searching...
No Matches
DataProcessorMatchers.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
15
16namespace o2::framework
17{
19{
20 return [name = std::string(name_)](DataProcessorSpec const& spec) {
21 return spec.name == name;
22 };
23}
24
26{
27 return [name = std::string(name_)](DeviceSpec const& spec, ConfigContext const&) {
28 return spec.name == name;
29 };
30}
31
33{
34 return [name = std::string(name_)](DataProcessorSpec const& source, DataProcessorSpec const&, ConfigContext const&) {
35 return source.name == name;
36 };
37}
38
40{
41 return [name = std::string(name_)](DataProcessorSpec const&, DataProcessorSpec const& dest, ConfigContext const&) {
42 return dest.name == name;
43 };
44}
45
46EdgeMatcher EdgeMatchers::matchEndsByName(char const* source_, char const* dest_)
47{
48 return [sourceName = std::string(source_), destName = std::string(dest_)](DataProcessorSpec const& source, DataProcessorSpec const& dest, ConfigContext const&) {
49 return source.name == sourceName && dest.name == destName;
50 };
51}
52} // namespace o2::framework
GLuint const GLchar * name
Definition glcorearb.h:781
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::function< bool(DataProcessorSpec const &source, DataProcessorSpec const &dest, ConfigContext const &context)> EdgeMatcher
std::function< bool(DataProcessorSpec const &spec)> DataProcessorMatcher
std::function< bool(DeviceSpec const &spec, ConfigContext const &context)> DeviceMatcher
static DataProcessorMatcher matchByName(const char *name)
static DeviceMatcher matchByName(const char *name)
static EdgeMatcher matchSourceByName(const char *name)
static EdgeMatcher matchEndsByName(const char *sourceName, const char *destName)
static EdgeMatcher matchDestByName(const char *name)