Skip to content

Commit 00ea03a

Browse files
committed
add isUninitialized accessor for InputTag
1 parent d03d230 commit 00ea03a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

FWCore/Utilities/interface/InputTag.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ namespace edm {
4444

4545
void cacheToken(EDGetToken) const;
4646

47+
bool isUninitialized() const;
48+
4749
static const std::string kSkipCurrentProcess;
4850
static const std::string kCurrentProcess;
4951

FWCore/Utilities/src/InputTag.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ namespace edm {
108108

109109
void InputTag::cacheToken(EDGetToken token) const { token_.store(token); }
110110

111+
bool InputTag::isUninitialized() const {
112+
return label_.empty() and instance_.empty() and process_.empty();
113+
}
114+
111115
std::ostream& operator<<(std::ostream& ost, InputTag const& tag) {
112116
static std::string const process(", process = ");
113117
ost << "InputTag: label = " << tag.label() << ", instance = " << tag.instance()

0 commit comments

Comments
 (0)