ProteoWizard
Public Member Functions | Private Attributes | List of all members
pwiz::analysis::RTMatches_IsContainedIn< T > Struct Template Reference

predicate returns true iff the object's retention time range is completely contained within the range of the specified reference object, up to the specified tolerance More...

#include <MZRTField.hpp>

Public Member Functions

 RTMatches_IsContainedIn (const T &reference, double rtTolerance=0)
 
bool operator() (const T &t) const
 

Private Attributes

const T & reference_
 
double rtTolerance_
 

Detailed Description

template<typename T>
struct pwiz::analysis::RTMatches_IsContainedIn< T >

predicate returns true iff the object's retention time range is completely contained within the range of the specified reference object, up to the specified tolerance

Definition at line 148 of file MZRTField.hpp.

Constructor & Destructor Documentation

template<typename T >
pwiz::analysis::RTMatches_IsContainedIn< T >::RTMatches_IsContainedIn ( const T &  reference,
double  rtTolerance = 0 
)
inline

Definition at line 150 of file MZRTField.hpp.

Member Function Documentation

template<typename T >
bool pwiz::analysis::RTMatches_IsContainedIn< T >::operator() ( const T &  t) const
inline

Definition at line 153 of file MZRTField.hpp.

154  {
155  return t.retentionTimeMin() > reference_.retentionTimeMin() - rtTolerance_ &&
156  t.retentionTimeMax() < reference_.retentionTimeMax() + rtTolerance_;
157  }

Member Data Documentation

template<typename T >
const T& pwiz::analysis::RTMatches_IsContainedIn< T >::reference_
private

Definition at line 160 of file MZRTField.hpp.

template<typename T >
double pwiz::analysis::RTMatches_IsContainedIn< T >::rtTolerance_
private

Definition at line 161 of file MZRTField.hpp.


The documentation for this struct was generated from the following file: