OpenMS
|
Is this a decoy hit? More...
#include <OpenMS/PROCESSING/ID/IDFilter.h>
Public Types | |
typedef HitType | argument_type |
Public Member Functions | |
HasDecoyAnnotation () | |
Default constructor. More... | |
bool | operator() (const HitType &hit) const |
Operator to check if a HitType object has decoy annotation. More... | |
Public Attributes | |
struct HasMetaValue< HitType > target_decoy | is_decoy |
Is this a decoy hit?
A predicate to check if a HitType has decoy annotation.
This struct is used as a predicate to check if a HitType object has decoy annotation. It checks for the presence of "target_decoy" or "isDecoy" meta values in the HitType object.
Example usage:
HitType | The type of the Hit object to be checked. |
typedef HitType argument_type |
|
inline |
Default constructor.
Initializes the "target_decoy" and "is_decoy" meta value objects.
|
inline |
Operator to check if a HitType object has decoy annotation.
This operator checks if the given HitType object has either "target_decoy" or "isDecoy" meta values.
hit | The HitType object to be checked. |
struct HasMetaValue< HitType > target_decoy is_decoy |