STXXL
1.4-dev
|
Definition at line 43 of file disk_allocator.h.
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 45 of file disk_allocator.h.
|
private |
Definition at line 57 of file disk_allocator.h.
|
inline |
Definition at line 88 of file disk_allocator.h.
References stxxl::disk_config::size.
|
inline |
Definition at line 99 of file disk_allocator.h.
|
private |
Definition at line 66 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 140 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, and total.
|
inline |
Definition at line 106 of file disk_allocator.h.
|
inline |
Definition at line 116 of file disk_allocator.h.
|
inline |
Definition at line 111 of file disk_allocator.h.
|
inlineprivate |
Definition at line 77 of file disk_allocator.h.
|
inline |
Definition at line 122 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 153 of file disk_allocator.h.
References _STXXL_FORCE_SEQUENTIAL, stxxl::BID< Size >::offset, stxxl::BID< Size >::size, STXXL_ERRMSG, STXXL_THROW, STXXL_VERBOSE1, STXXL_VERBOSE2, and stxxl::scoped_mutex_lock::unlock().
|
private |
Definition at line 65 of file disk_allocator.h.
|
private |
Definition at line 63 of file disk_allocator.h.
|
private |
Definition at line 62 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 64 of file disk_allocator.h.