ProteoWizard
Public Member Functions | Private Attributes
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>

List of all members.

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

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

Definition at line 132 of file MZRTField.hpp.

: rt_(rt), rtTolerance_(rtTolerance) {}

Member Function Documentation

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

Definition at line 134 of file MZRTField.hpp.

References pwiz::analysis::RTMatches_Contains< T >::rt_, and pwiz::analysis::RTMatches_Contains< T >::rtTolerance_.

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

Member Data Documentation

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

Definition at line 140 of file MZRTField.hpp.

Referenced by pwiz::analysis::RTMatches_Contains< T >::operator()().

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

Definition at line 141 of file MZRTField.hpp.

Referenced by pwiz::analysis::RTMatches_Contains< T >::operator()().


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