OpenMS
Loading...
Searching...
No Matches
IDFilter::HasMatchingAccessionImpl< HitType, SetType > Struct Template Reference

Given a list of protein accessions, do any occur in the annotation(s) of this hit? More...

#include <OpenMS/PROCESSING/ID/IDFilter.h>

Collaboration diagram for IDFilter::HasMatchingAccessionImpl< HitType, SetType >:
[legend]

Public Types

typedef HitType argument_type
 

Public Member Functions

 HasMatchingAccessionImpl (const SetType &accessions_)
 
bool operator() (const PeptideHit &hit) const
 
bool operator() (const ProteinHit &hit) const
 
bool operator() (const PeptideEvidence &evidence) const
 

Public Attributes

const SetType & accessions
 

Detailed Description

template<class HitType, class SetType>
struct OpenMS::IDFilter::HasMatchingAccessionImpl< HitType, SetType >

Given a list of protein accessions, do any occur in the annotation(s) of this hit?

Template implementation that works with any set-like container (std::set, std::unordered_set, etc.) that provides a count() method.

Note
This predicate also works for peptide evidence (class PeptideEvidence).

Member Typedef Documentation

◆ argument_type

template<class HitType , class SetType >
typedef HitType argument_type

Constructor & Destructor Documentation

◆ HasMatchingAccessionImpl()

template<class HitType , class SetType >
HasMatchingAccessionImpl ( const SetType &  accessions_)
inlineexplicit

Member Function Documentation

◆ operator()() [1/3]

template<class HitType , class SetType >
bool operator() ( const PeptideEvidence evidence) const
inline

◆ operator()() [2/3]

template<class HitType , class SetType >
bool operator() ( const PeptideHit hit) const
inline

◆ operator()() [3/3]

template<class HitType , class SetType >
bool operator() ( const ProteinHit hit) const
inline

Member Data Documentation

◆ accessions

template<class HitType , class SetType >
const SetType& accessions