OpenMS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MSSpectrum::Chunks Struct Reference

Container for organizing and managing multiple chunks in a spectrum. More...

#include <OpenMS/KERNEL/MSSpectrum.h>

Collaboration diagram for MSSpectrum::Chunks:
[legend]

Public Member Functions

 Chunks (const MSSpectrum &s)
 
void add (bool is_sorted)
 
std::vector< Chunk > & getChunks ()
 

Private Attributes

std::vector< Chunkchunks_
 
const MSSpectrumspec_
 

Detailed Description

Container for organizing and managing multiple chunks in a spectrum.

This structure is used to track multiple chunks (segments) within a spectrum. Each chunk represents a portion of the spectrum that may or may not be sorted. This information is used to optimize sorting operations on spectra, particularly when only parts of the spectrum need to be sorted or have been modified.

See also
Chunk

Constructor & Destructor Documentation

◆ Chunks()

Chunks ( const MSSpectrum s)
inline

Member Function Documentation

◆ add()

void add ( bool  is_sorted)
inline

◆ getChunks()

std::vector<Chunk>& getChunks ( )
inline

Member Data Documentation

◆ chunks_

std::vector<Chunk> chunks_
private

◆ spec_

const MSSpectrum& spec_
private