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

predicate returns true iff the object's retention time range contains the specified retention time More...

#include <MZRTField.hpp>

Public Member Functions

 RTMatches_Contains (double rt, double rtTolerance=0)
 
bool operator() (const T &t) const
 

Private Attributes

double rt_
 
double rtTolerance_
 

Detailed Description

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

predicate returns true iff the object's retention time range contains the specified retention time

Definition at line 130 of file MZRTField.hpp.

Constructor & Destructor Documentation

§ RTMatches_Contains()

template<typename T >
pwiz::analysis::RTMatches_Contains< T >::RTMatches_Contains ( double  rt,
double  rtTolerance = 0 
)
inline

Definition at line 132 of file MZRTField.hpp.

Member Function Documentation

§ operator()()

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

Definition at line 134 of file MZRTField.hpp.

135  {
136  return rt_>t.retentionTimeMin()-rtTolerance_ && rt_<t.retentionTimeMax()+rtTolerance_;
137  }

Member Data Documentation

§ rt_

template<typename T >
double pwiz::analysis::RTMatches_Contains< T >::rt_
private

Definition at line 140 of file MZRTField.hpp.

§ rtTolerance_

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

Definition at line 141 of file MZRTField.hpp.


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