7#ifndef _CISOTOPEPATTERNCACHE_H
8#define _CISOTOPEPATTERNCACHE_H
12#include <unordered_map>
23 unordered_map<string, list<pair<string, cPeaksList> >::iterator > cache_map;
24 list<pair<string, cPeaksList> > cache_list;
The representation of a peak list.
Isotope pattern cache (LRU cache is implemented).
Definition: cIsotopePatternCache.h:21
~cIsotopePatternCache()
The destructor.
Definition: cIsotopePatternCache.cpp:10
void put(string &formula, cPeaksList &isotopepattern)
Put the isotope pattern corresponding to the formula into the cache.
Definition: cIsotopePatternCache.cpp:38
bool get(string &formula, cPeaksList &isotopepattern)
Get the isotope pattern corresponding to the formula from the cache.
Definition: cIsotopePatternCache.cpp:14
void clear()
Clear the cache.
Definition: cIsotopePatternCache.cpp:51
cIsotopePatternCache(int size=10000)
The constructor.
Definition: cIsotopePatternCache.cpp:4
The class representing a peak list.
Definition: cPeaksList.h:68
Auxiliary funtions and structures.