Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FWCore
Framework
interface
ComponentDescription.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_ComponentDescription_h
2
#define FWCore_Framework_ComponentDescription_h
3
// -*- C++ -*-
4
//
5
// Package: Framework
6
// Class : ComponentDescription
7
//
16
//
17
// Original Author: Chris Jones
18
// Created: Thu Dec 15 14:07:57 EST 2005
19
//
20
21
// user include files
22
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
23
24
// system include files
25
#include <string>
26
27
// forward declarations
28
namespace
edm {
29
namespace
eventsetup {
30
struct
ComponentDescription
{
31
std::string
label_
;
// A human friendly string that uniquely identifies the label
32
std::string
type_
;
// A human friendly string that uniquely identifies the name
33
34
// ID of parameter set of the creator
35
ParameterSetID
pid_
;
36
37
unsigned
int
id_
;
38
39
bool
isSource_
;
40
bool
isLooper_
;
41
42
/* ----------- end of provenance information ------------- */
43
44
ComponentDescription
() :
label_
(),
type_
(),
pid_
(),
id_
(
unknownID
()),
isSource_
(
false
),
isLooper_
(
false
) {}
45
46
ComponentDescription
(
47
std::string
const
& iType,
std::string
const
& iLabel,
unsigned
int
iId,
bool
iIsSource,
bool
iIsLooper =
false
)
48
:
label_
(iLabel),
type_
(iType),
pid_
(),
id_
(iId),
isSource_
(iIsSource),
isLooper_
(iIsLooper) {}
49
50
[[nodiscard]]
static
constexpr
unsigned
int
unknownID
() noexcept {
return
0xFFFFFFFF; }
51
52
bool
operator<
(
ComponentDescription
const
& iRHS)
const
{
53
return
(
type_
== iRHS.
type_
) ? (
label_
< iRHS.
label_
) : (
type_
< iRHS.
type_
);
54
}
55
bool
operator==
(
ComponentDescription
const
& iRHS)
const
{
56
return
label_
== iRHS.
label_
&&
type_
== iRHS.
type_
&&
isSource_
== iRHS.
isSource_
;
57
}
58
};
59
}
// namespace eventsetup
60
}
// namespace edm
61
#endif
edm::eventsetup::ComponentDescription::label_
std::string label_
Definition:
ComponentDescription.h:31
edm::eventsetup::ComponentDescription::isSource_
bool isSource_
Definition:
ComponentDescription.h:39
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription()
Definition:
ComponentDescription.h:44
edm::Hash< ParameterSetType >
funct::false
false
Definition:
Factorize.h:29
edm::eventsetup::ComponentDescription::pid_
ParameterSetID pid_
Definition:
ComponentDescription.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::eventsetup::ComponentDescription::operator==
bool operator==(ComponentDescription const &iRHS) const
Definition:
ComponentDescription.h:55
edm::eventsetup::ComponentDescription::isLooper_
bool isLooper_
Definition:
ComponentDescription.h:40
ParameterSetID.h
edm::eventsetup::ComponentDescription::type_
std::string type_
Definition:
ComponentDescription.h:32
edm::eventsetup::ComponentDescription::unknownID
static constexpr unsigned int unknownID() noexcept
Definition:
ComponentDescription.h:50
edm::eventsetup::ComponentDescription::ComponentDescription
ComponentDescription(std::string const &iType, std::string const &iLabel, unsigned int iId, bool iIsSource, bool iIsLooper=false)
Definition:
ComponentDescription.h:46
edm::eventsetup::ComponentDescription::id_
unsigned int id_
Definition:
ComponentDescription.h:37
edm::eventsetup::ComponentDescription
Definition:
ComponentDescription.h:30
edm::eventsetup::ComponentDescription::operator<
bool operator<(ComponentDescription const &iRHS) const
Definition:
ComponentDescription.h:52
Generated for CMSSW Reference Manual by
1.8.5