#include <vil_block_cache.h>
Definition at line 40 of file 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. | |
| 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. | |
| unsigned | block_size () const |
| block capacity. | |
Private Member Functions | |
| bool | remove_block () |
| remove the lowest priority block. | |
Private Attributes | |
| vcl_priority_queue< compare, vcl_vector< bcell * > > | queue_ |
| block queue member. | |
| vcl_vector< bcell * > | blocks_ |
| block index member. | |
| unsigned | nblocks_ |
| capacity in blocks. | |
Classes | |
| struct | compare |
|
|
Definition at line 43 of file vil_block_cache.h. |
|
|
Definition at line 9 of file vil_block_cache.cxx. |
|
||||||||||||||||
|
add a block to the buffer.
Definition at line 24 of file vil_block_cache.cxx. |
|
|
block capacity.
Definition at line 55 of file vil_block_cache.h. |
|
||||||||||||||||
|
retrieve a block from the buffer.
Definition at line 39 of file vil_block_cache.cxx. |
|
|
remove the lowest priority block.
Definition at line 59 of file vil_block_cache.cxx. |
|
|
block index member.
Definition at line 65 of file vil_block_cache.h. |
|
|
capacity in blocks.
Definition at line 67 of file vil_block_cache.h. |
|
|
block queue member.
Definition at line 63 of file vil_block_cache.h. |
1.4.4