STXXL
1.4-dev
|
Used inside block_cache for buffering write requests of cached blocks.
Definition at line 35 of file block_cache.h.
Public Types | |
typedef block_type::bid_type | bid_type |
typedef BlockType | block_type |
Public Member Functions | |
block_cache_write_buffer (unsigned_type size) | |
~block_cache_write_buffer () | |
void | flush () |
void | swap (block_cache_write_buffer &obj) |
block_type * | write (block_type *write_block, const bid_type &bid) |
Writes the given block back to disk; callers have to exchange the passed block with the returned one! More... | |
Protected Attributes | |
std::vector< block_type * > | blocks_ |
std::list< unsigned_type > | busy_blocks_ |
std::vector< unsigned_type > | free_blocks_ |
std::vector< request_ptr > | reqs_ |
Additional Inherited Members | |
Private Member Functions inherited from stxxl::noncopyable | |
noncopyable () | |
typedef block_type::bid_type stxxl::hash_map::block_cache_write_buffer< BlockType >::bid_type |
Definition at line 39 of file block_cache.h.
typedef BlockType stxxl::hash_map::block_cache_write_buffer< BlockType >::block_type |
Definition at line 38 of file block_cache.h.
|
inline |
Definition at line 48 of file block_cache.h.
|
inline |
Definition at line 107 of file block_cache.h.
|
inline |
Definition at line 85 of file block_cache.h.
|
inline |
Definition at line 99 of file block_cache.h.
|
inline |
Writes the given block back to disk; callers have to exchange the passed block with the returned one!
Definition at line 62 of file block_cache.h.
|
protected |
Definition at line 42 of file block_cache.h.
Referenced by stxxl::hash_map::block_cache_write_buffer< block_type >::swap().
|
protected |
Definition at line 45 of file block_cache.h.
Referenced by stxxl::hash_map::block_cache_write_buffer< block_type >::swap().
|
protected |
Definition at line 44 of file block_cache.h.
Referenced by stxxl::hash_map::block_cache_write_buffer< block_type >::swap().
|
protected |
Definition at line 43 of file block_cache.h.
Referenced by stxxl::hash_map::block_cache_write_buffer< block_type >::swap().