#include <vil_block_cache.h>
Public Member Functions | |
| vil_block_cache (const unsigned block_capacity) | |
| ~vil_block_cache () | |
| bool | add_block (const unsigned &block_index_i, const unsigned &block_index_j, vil_image_view_base_sptr const &blk) |
| add a block to the buffer. More... | |
| bool | get_block (const unsigned &block_index_i, const unsigned &block_index_j, vil_image_view_base_sptr &blk) const |
| retrieve a block from the buffer. More... | |
| unsigned | block_size () const |
| block capacity. More... | |
Private Member Functions | |
| bool | remove_block () |
| remove the lowest priority block. More... | |
Private Attributes | |
| std::vector< bcell * > | blocks_ |
| block index member. More... | |
| unsigned | nblocks_ |
| capacity in blocks. More... | |
Definition at line 58 of file vil_block_cache.h.
|
inline |
Definition at line 61 of file vil_block_cache.h.
| vil_block_cache::~vil_block_cache | ( | ) |
Definition at line 12 of file vil_block_cache.cxx.
| bool vil_block_cache::add_block | ( | const unsigned & | block_index_i, |
| const unsigned & | block_index_j, | ||
| vil_image_view_base_sptr const & | blk | ||
| ) |
add a block to the buffer.
Definition at line 22 of file vil_block_cache.cxx.
|
inline |
block capacity.
Definition at line 73 of file vil_block_cache.h.
| bool vil_block_cache::get_block | ( | const unsigned & | block_index_i, |
| const unsigned & | block_index_j, | ||
| vil_image_view_base_sptr & | blk | ||
| ) | const |
retrieve a block from the buffer.
Definition at line 37 of file vil_block_cache.cxx.
|
private |
remove the lowest priority block.
remove the oldest priority block.
Definition at line 57 of file vil_block_cache.cxx.
|
private |
block index member.
Definition at line 76 of file vil_block_cache.h.
|
private |
capacity in blocks.
Definition at line 78 of file vil_block_cache.h.
1.8.15