ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::analysis::PrecursorMaskCodec::DemuxBoundary Struct Reference

Simple container that is useful for breaking up DemuxWindows into their edges and resolving overlap. More...

#include <PrecursorMaskCodec.hpp>

Public Member Functions

 DemuxBoundary (double mz)
 Constructs a DemuxBoundary from an m/z floating point value.
 
bool operator< (const DemuxBoundary &rhs) const
 DemuxBoundaries are sorted to the precision of their hash.
 
bool operator== (const DemuxBoundary &rhs) const
 DemuxBoundaries are equated only by their hashes.
 

Public Attributes

double mz
 Full precision m/z value.
 
MZHash mzHash
 Hashed m/z value for fast and simple comparison operations.
 

Detailed Description

Simple container that is useful for breaking up DemuxWindows into their edges and resolving overlap.

Definition at line 61 of file PrecursorMaskCodec.hpp.

Constructor & Destructor Documentation

◆ DemuxBoundary()

pwiz::analysis::PrecursorMaskCodec::DemuxBoundary::DemuxBoundary ( double  mz)
inlineexplicit

Constructs a DemuxBoundary from an m/z floating point value.

Definition at line 64 of file PrecursorMaskCodec.hpp.

static MZHash Hash(double mz)
Hash a floating-point m/z value to an integer.
MZHash mzHash
Hashed m/z value for fast and simple comparison operations.

Member Function Documentation

◆ operator<()

bool pwiz::analysis::PrecursorMaskCodec::DemuxBoundary::operator< ( const DemuxBoundary rhs) const
inline

DemuxBoundaries are sorted to the precision of their hash.

Definition at line 71 of file PrecursorMaskCodec.hpp.

71{ return this->mzHash < rhs.mzHash; }

References mzHash.

◆ operator==()

bool pwiz::analysis::PrecursorMaskCodec::DemuxBoundary::operator== ( const DemuxBoundary rhs) const
inline

DemuxBoundaries are equated only by their hashes.

Definition at line 74 of file PrecursorMaskCodec.hpp.

74{ return this->mzHash == rhs.mzHash; }

References mzHash.

Member Data Documentation

◆ mz

double pwiz::analysis::PrecursorMaskCodec::DemuxBoundary::mz

Full precision m/z value.

Definition at line 66 of file PrecursorMaskCodec.hpp.

◆ mzHash

MZHash pwiz::analysis::PrecursorMaskCodec::DemuxBoundary::mzHash

Hashed m/z value for fast and simple comparison operations.

Definition at line 68 of file PrecursorMaskCodec.hpp.

Referenced by operator<(), and operator==().


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