|
STXXL
1.4.1
|
Definition at line 41 of file disk_allocator.h.
Inheritance diagram for stxxl::disk_allocator:
Collaboration diagram for stxxl::disk_allocator:Classes | |
| struct | first_fit |
Public Member Functions | |
| disk_allocator (stxxl::file *storage, const disk_config &cfg) | |
| ~disk_allocator () | |
| template<unsigned BlockSize> | |
| void | delete_block (const BID< BlockSize > &bid) |
| int64 | get_free_bytes () const |
| int64 | get_total_bytes () const |
| int64 | get_used_bytes () const |
| template<unsigned BlockSize> | |
| void | new_blocks (BIDArray< BlockSize > &bids) |
| template<unsigned BlockSize> | |
| void | new_blocks (BID< BlockSize > *begin, BID< BlockSize > *end) |
Private Types | |
| typedef std::pair < stxxl::int64, stxxl::int64 > | place |
| typedef std::map< stxxl::int64, stxxl::int64 > | sortseq |
Private Member Functions | |
| void | add_free_region (stxxl::int64 block_pos, stxxl::int64 block_size) |
| void | deallocation_error (stxxl::int64 block_pos, stxxl::int64 block_size, const sortseq::iterator &pred, const sortseq::iterator &succ) const |
| void | dump () const |
| void | grow_file (stxxl::int64 extend_bytes) |
Private Member Functions inherited from stxxl::noncopyable | |
| noncopyable () | |
Private Attributes | |
| bool | autogrow |
| stxxl::int64 | cfg_bytes |
| stxxl::int64 | disk_bytes |
| stxxl::int64 | free_bytes |
| sortseq | free_space |
| stxxl::mutex | mutex |
| stxxl::file * | storage |
|
private |
Definition at line 43 of file disk_allocator.h.
|
private |
Definition at line 55 of file disk_allocator.h.
|
inline |
Definition at line 86 of file disk_allocator.h.
References stxxl::disk_config::size.
|
inline |
Definition at line 97 of file disk_allocator.h.
|
private |
Definition at line 64 of file disk_allocator.cpp.
References STXXL_THROW2, and STXXL_VERBOSE2.
|
private |
Definition at line 41 of file disk_allocator.cpp.
References STXXL_ERRMSG.
|
inline |
Definition at line 138 of file disk_allocator.h.
References stxxl::BID< Size >::offset, stxxl::BID< Size >::size, and STXXL_VERBOSE2.
|
private |
Definition at line 28 of file disk_allocator.cpp.
References STXXL_ERRMSG.
|
inline |
Definition at line 104 of file disk_allocator.h.
|
inline |
Definition at line 114 of file disk_allocator.h.
|
inline |
Definition at line 109 of file disk_allocator.h.
|
inlineprivate |
Definition at line 75 of file disk_allocator.h.
|
inline |
Definition at line 120 of file disk_allocator.h.
References stxxl::simple_vector< BID< BlockSize > >::begin(), and stxxl::simple_vector< BID< BlockSize > >::end().
| void stxxl::disk_allocator::new_blocks | ( | BID< BlockSize > * | begin, |
| BID< BlockSize > * | end | ||
| ) |
Definition at line 151 of file disk_allocator.h.
References _STXXL_FORCE_SEQUENTIAL, stxxl::BID< Size >::offset, stxxl::BID< Size >::size, STXXL_ERRMSG, STXXL_VERBOSE1, STXXL_VERBOSE2, and stxxl::scoped_mutex_lock::unlock().
|
private |
Definition at line 63 of file disk_allocator.h.
|
private |
Definition at line 61 of file disk_allocator.h.
|
private |
Definition at line 60 of file disk_allocator.h.
|
private |
Definition at line 59 of file disk_allocator.h.
|
private |
Definition at line 58 of file disk_allocator.h.
|
private |
Definition at line 57 of file disk_allocator.h.
|
private |
Definition at line 62 of file disk_allocator.h.