ATLAS Offline Software
|
Helper for remove_duplicates
.
More...
#include <CompareAndPrint.h>
Public Member Functions | |
CompareAndPrint (bool quiet) | |
Constructor. More... | |
template<typename Element > | |
bool | operator() (Element *f, Element *s) const |
Compare two pointers. More... | |
void | warn (const std::type_info &ti, const void *f) const |
Duplicate elements were found; print a warning. More... | |
Private Attributes | |
bool | m_quiet |
Quiet flag. More... | |
Helper for remove_duplicates
.
Functor to compare two pointers and optionally print a complaint if they're the same.
Definition at line 22 of file CompareAndPrint.h.
|
inline |
Constructor.
quiet | If false , then print a complaint if duplicate pointers are found. |
Definition at line 30 of file CompareAndPrint.h.
|
inline |
Compare two pointers.
Maybe print a complaint if we find a duplicate.
f | First pointer to compare. |
s | Second pointer to compare. |
Definition at line 42 of file CompareAndPrint.h.
Duplicate elements were found; print a warning.
ti | type_info for the element. |
f | The element pointer. |
Definition at line 26 of file CompareAndPrint.cxx.
|
private |
Quiet flag.
Definition at line 62 of file CompareAndPrint.h.