Isotope pattern cache (LRU cache is implemented).
More...
#include <cIsotopePatternCache.h>
|
| | cIsotopePatternCache (int size=10000) |
| | The constructor. More...
|
| |
|
| ~cIsotopePatternCache () |
| | The destructor.
|
| |
| bool | get (string &formula, cPeaksList &isotopepattern) |
| | Get the isotope pattern corresponding to the formula from the cache. More...
|
| |
| void | put (string &formula, cPeaksList &isotopepattern) |
| | Put the isotope pattern corresponding to the formula into the cache. More...
|
| |
|
void | clear () |
| | Clear the cache.
|
| |
Isotope pattern cache (LRU cache is implemented).
◆ cIsotopePatternCache()
| cIsotopePatternCache::cIsotopePatternCache |
( |
int |
size = 10000 | ) |
|
The constructor.
- Parameters
-
| size | maximum number of cached items |
◆ get()
| bool cIsotopePatternCache::get |
( |
string & |
formula, |
|
|
cPeaksList & |
isotopepattern |
|
) |
| |
Get the isotope pattern corresponding to the formula from the cache.
- Parameters
-
| formula | input summary formula |
| isotopepattern | output isotope pattern |
- Return values
-
| bool | true if the isotope pattern was found; false otherwise. |
◆ put()
| void cIsotopePatternCache::put |
( |
string & |
formula, |
|
|
cPeaksList & |
isotopepattern |
|
) |
| |
Put the isotope pattern corresponding to the formula into the cache.
- Parameters
-
| formula | input summary formula |
| isotopepattern | input isotope pattern |
The documentation for this class was generated from the following files: