OpenMS
Loading...
Searching...
No Matches
FragmentIndex::Peptide::Span Struct Reference

#include <OpenMS/ANALYSIS/ID/FragmentIndex.h>

Public Member Functions

 Span ()=default
 
 Span (std::pair< uint16_t, uint16_t > span)
 
 operator std::pair< uint16_t, uint16_t > () const
 
bool operator== (const Span &) const =default
 

Public Attributes

uint16_t first
 
uint16_t second
 

Detailed Description

{first, second} like std::pair<uint16_t, uint16_t>, and convertible from and to it, but trivially copyable (std::pair's assignment is not), as is Peptide then: sorting and copying peptides moves plain bytes. Its default constructor writes nothing either (std::pair's zeroes the members).

Constructor & Destructor Documentation

◆ Span() [1/2]

Span ( )
default

◆ Span() [2/2]

Span ( std::pair< uint16_t, uint16_t >  span)
inline

Member Function Documentation

◆ operator std::pair< uint16_t, uint16_t >()

operator std::pair< uint16_t, uint16_t > ( ) const
inline

References first.

◆ operator==()

bool operator== ( const Span &  ) const
default

Member Data Documentation

◆ first

uint16_t first

◆ second

uint16_t second