Public Member Functions | Private Member Functions | Private Attributes | List of all members
vil_block_cache Class Reference

#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...
 

Detailed Description

Definition at line 58 of file vil_block_cache.h.

Constructor & Destructor Documentation

◆ vil_block_cache()

vil_block_cache::vil_block_cache ( const unsigned  block_capacity)
inline

Definition at line 61 of file vil_block_cache.h.

◆ ~vil_block_cache()

vil_block_cache::~vil_block_cache ( )

Definition at line 12 of file vil_block_cache.cxx.

Member Function Documentation

◆ add_block()

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.

◆ block_size()

unsigned vil_block_cache::block_size ( ) const
inline

block capacity.

Definition at line 73 of file vil_block_cache.h.

◆ get_block()

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.

◆ remove_block()

bool vil_block_cache::remove_block ( )
private

remove the lowest priority block.

remove the oldest priority block.

Definition at line 57 of file vil_block_cache.cxx.

Member Data Documentation

◆ blocks_

std::vector<bcell*> vil_block_cache::blocks_
private

block index member.

Definition at line 76 of file vil_block_cache.h.

◆ nblocks_

unsigned vil_block_cache::nblocks_
private

capacity in blocks.

Definition at line 78 of file vil_block_cache.h.


The documentation for this class was generated from the following files: