#include <fifo_cache.h>
Public Member Functions | |
| const T * | data (boost::uint64_t id) const |
| fifo_cache (std::size_t max_size) | |
| bool | is_full () const |
| T * | pop () |
| void | push (boost::uint64_t id, T *data) |
| ~fifo_cache () | |
Private Attributes | |
| std::vector< boost::uint64_t > | m_fifo |
| std::size_t | m_fifo_idx |
| std::map< boost::uint64_t, T * > | m_fifos |
| std::size_t | m_max_size |
| std::size_t | m_size |
Definition at line 13 of file fifo_cache.h.
|
inline |
Definition at line 38 of file fifo_cache.h.
References fifo_cache< T >::m_fifo.
|
inline |
Definition at line 46 of file fifo_cache.h.
|
inline |
Definition at line 51 of file fifo_cache.h.
References fifo_cache< T >::m_fifos.
Referenced by modis_dataset::impl::check_in_block_cache(), modis_dataset::impl::check_in_raster_cache(), fifo_cache< T >::push(), and modis_dataset::impl::query().
|
inline |
Definition at line 58 of file fifo_cache.h.
References fifo_cache< T >::m_max_size, and fifo_cache< T >::m_size.
Referenced by modis_dataset::impl::check_in_disk(), fifo_cache< T >::push(), modis_dataset::impl::sync_cache_from_blocks(), and modis_dataset::impl::sync_cache_from_rasters().
|
inline |
Definition at line 63 of file fifo_cache.h.
References d, fifo_cache< T >::m_fifo, fifo_cache< T >::m_fifo_idx, fifo_cache< T >::m_fifos, and fifo_cache< T >::m_size.
Referenced by modis_dataset::impl::sync_cache_from_blocks(), and modis_dataset::impl::sync_cache_from_rasters().
|
inline |
Definition at line 77 of file fifo_cache.h.
References fifo_cache< T >::data(), fifo_cache< T >::is_full(), fifo_cache< T >::m_fifo, fifo_cache< T >::m_fifo_idx, fifo_cache< T >::m_fifos, fifo_cache< T >::m_max_size, and fifo_cache< T >::m_size.
Referenced by modis_dataset::impl::sync_cache_from_blocks(), and modis_dataset::impl::sync_cache_from_rasters().
|
private |
Definition at line 32 of file fifo_cache.h.
Referenced by fifo_cache< T >::fifo_cache(), fifo_cache< T >::pop(), and fifo_cache< T >::push().
|
private |
Definition at line 35 of file fifo_cache.h.
Referenced by fifo_cache< T >::pop(), and fifo_cache< T >::push().
|
private |
Definition at line 31 of file fifo_cache.h.
Referenced by fifo_cache< T >::data(), fifo_cache< T >::pop(), and fifo_cache< T >::push().
|
private |
Definition at line 34 of file fifo_cache.h.
Referenced by fifo_cache< T >::is_full(), and fifo_cache< T >::push().
|
private |
Definition at line 33 of file fifo_cache.h.
Referenced by fifo_cache< T >::is_full(), fifo_cache< T >::pop(), and fifo_cache< T >::push().