22 #ifndef _SPECTRUMLISTCACHE_HPP_
23 #define _SPECTRUMLISTCACHE_HPP_
43 BOOST_STATIC_CONSTANT(
unsigned, first_offset = offsetof(
KeyValuePair, first));
47 MemoryMRUCacheMode cacheMode,
52 virtual SpectrumPtr spectrum(
size_t index,
bool getBinaryData =
false)
const;
73 #endif // _SPECTRUMLISTCACHE_HPP_
boost::shared_ptr< Spectrum > SpectrumPtr
std::pair< size_t, SpectrumPtr > KeyValuePair
a cache mapping spectrum indices to SpectrumPtrs
an MRU cache for SpectrumPtrs or ChromatogramPtrs
Inheritable pass-through implementation for wrapping a SpectrumList.
adds a level of flexible MRU caching to a SpectrumList processor chain
boost::shared_ptr< SpectrumList > SpectrumListPtr
MemoryMRUCache< KeyValuePair, boost::multi_index::member_offset< KeyValuePair, size_t, first_offset > > CacheType