#include <GenericDuplicateRemover.h>
Public Member Functions | |
template<typename Collection > | |
std::unique_ptr< std::vector< size_t > > | duplicates (const Collection &items) const |
GenericDuplicateRemover () | |
GenericDuplicateRemover (const Comparator &comp) | |
GenericDuplicateRemover (const Comparator &comp, const Arbitrator &arbiter) | |
~GenericDuplicateRemover () | |
Private Attributes | |
Arbitrator | arbiter_ |
Comparator | comparator_ |
Definition at line 11 of file GenericDuplicateRemover.h.
|
inline |
Definition at line 15 of file GenericDuplicateRemover.h.
|
inline |
Definition at line 16 of file GenericDuplicateRemover.h.
|
inline |
Definition at line 17 of file GenericDuplicateRemover.h.
|
inline |
Definition at line 19 of file GenericDuplicateRemover.h.
References pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates(), and mps_monitormerge::items.
std::unique_ptr< std::vector< size_t > > pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates | ( | const Collection & | items | ) | const |
Indices of duplicated items to remove Comparator is used to check for duplication, Arbiter to pick the best one e.g. comparator(x1, x2) should return true if they are duplicates arbitrator(x1, x2) should return true if x1 is better, that is we want to keep x1 and delete x2 Collection can be vector, View, or anything with the same interface
Definition at line 40 of file GenericDuplicateRemover.h.
References pat::GenericDuplicateRemover< Comparator, Arbitrator >::arbiter_, pat::GenericDuplicateRemover< Comparator, Arbitrator >::comparator_, mps_fire::i, and findQualityFiles::size.
Referenced by pat::DuplicatedPhotonRemover::duplicatesBySeed(), pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(), pat::DuplicatedElectronRemover::duplicatesToRemove(), edmIntegrityCheck.IntegrityCheck::report(), edmIntegrityCheck.IntegrityCheck::structured(), edmIntegrityCheck.IntegrityCheck::test(), and pat::GenericDuplicateRemover< Comparator, Arbitrator >::~GenericDuplicateRemover().
|
private |
Definition at line 32 of file GenericDuplicateRemover.h.
Referenced by pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates().
|
private |
Definition at line 31 of file GenericDuplicateRemover.h.
Referenced by pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates().