|
ProteoWizard
|
an MRU cache for SpectrumPtrs or ChromatogramPtrs More...
#include <MemoryMRUCache.hpp>
Public Member Functions | |
| MemoryMRUCache (MemoryMRUCacheMode mode, size_t size) | |
| void | setMode (MemoryMRUCacheMode mode) |
| set the caching mode note: if the new mode is different than the current mode, the cache will be cleared | |
| MemoryMRUCacheMode | mode () const |
| get the current caching mode | |
Public Member Functions inherited from pwiz::util::mru_list< PtrType, KeyExtractor > | |
| mru_list (std::size_t max_num_items_) | |
| bool | insert (const item_type &item) |
| bool | modify (iterator position, Modifier modifier) |
| bool | empty () const |
| std::size_t | size () const |
| std::size_t | max_size () const |
| void | clear () |
| const item_type & | mru () const |
| const item_type & | lru () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
Private Attributes | |
| MemoryMRUCacheMode | mode_ |
Additional Inherited Members | |
Public Types inherited from pwiz::util::mru_list< PtrType, KeyExtractor > | |
| typedef PtrType | item_type |
| typedef item_list::iterator | iterator |
| typedef item_list::reverse_iterator | reverse_iterator |
| typedef item_list::const_iterator | const_iterator |
| typedef item_list::const_reverse_iterator | const_reverse_iterator |
| typedef item_list::value_type | value_type |
an MRU cache for SpectrumPtrs or ChromatogramPtrs
Definition at line 45 of file MemoryMRUCache.hpp.
|
inline |
Definition at line 48 of file MemoryMRUCache.hpp.
|
inline |
set the caching mode note: if the new mode is different than the current mode, the cache will be cleared
Definition at line 54 of file MemoryMRUCache.hpp.
|
inline |
get the current caching mode
Definition at line 62 of file MemoryMRUCache.hpp.
Referenced by pwiz::msdata::MemoryMRUCache< KeyValuePair, boost::multi_index::member_offset< KeyValuePair, size_t, first_offset > >::setMode().
|
private |
Definition at line 65 of file MemoryMRUCache.hpp.
Referenced by pwiz::msdata::MemoryMRUCache< KeyValuePair, boost::multi_index::member_offset< KeyValuePair, size_t, first_offset > >::mode(), and pwiz::msdata::MemoryMRUCache< KeyValuePair, boost::multi_index::member_offset< KeyValuePair, size_t, first_offset > >::setMode().
1.8.1.1