Skip to content

Commit

Permalink
GenericParameters.h: add missing clear and empty check for double map
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel authored Sep 27, 2024
1 parent c43bdf2 commit 03938c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/podio/GenericParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ class GenericParameters {
void clear() {
_intMap.clear();
_floatMap.clear();
_doubleMap.clear();
_stringMap.clear();
}

void print(std::ostream& os = std::cout, bool flush = true) const;

/// Check if no parameter is stored (i.e. if all internal maps are empty)
bool empty() const {
return _intMap.empty() && _floatMap.empty() && _stringMap.empty();
return _intMap.empty() && _floatMap.empty() && _doubleMap.empty() && _stringMap.empty();
}

#if PODIO_ENABLE_SIO
Expand Down

0 comments on commit 03938c4

Please sign in to comment.