Stxxl
1.4.0
|
Block identifier class. More...
#include <bid.h>
Public Types | |
enum | { size = SIZE, t_size = SIZE } |
Public Member Functions | |
BID () | |
bool | valid () const |
BID (file *s, stxxl::int64 o) | |
BID (const BID &obj) | |
template<unsigned BlockSize> | |
BID (const BID< BlockSize > &obj) | |
template<unsigned BlockSize> | |
BID & | operator= (const BID< BlockSize > &obj) |
bool | is_managed () const |
Public Attributes | |
file * | storage |
pointer to the file of the block | |
stxxl::int64 | offset |
offset within the file of the block |
Block identifier class.
Stores block identity, given by file and offset within the file
anonymous enum |
stxxl::BID< SIZE >::BID | ( | ) | [inline] |
stxxl::BID< SIZE >::BID | ( | file * | s, |
stxxl::int64 | o | ||
) | [inline] |
stxxl::BID< SIZE >::BID | ( | const BID< SIZE > & | obj | ) | [inline] |
stxxl::BID< SIZE >::BID | ( | const BID< BlockSize > & | obj | ) | [inline, explicit] |
bool stxxl::BID< SIZE >::is_managed | ( | ) | const [inline] |
Definition at line 77 of file bid.h.
Referenced by stxxl::block_manager::delete_block().
BID& stxxl::BID< SIZE >::operator= | ( | const BID< BlockSize > & | obj | ) | [inline] |
bool stxxl::BID< SIZE >::valid | ( | ) | const [inline] |
Definition at line 54 of file bid.h.
Referenced by stxxl::btree::normal_leaf< KeyType_, DataType_, KeyCmp_, RawSize_, BTreeType >::decrement_iterator().
stxxl::int64 stxxl::BID< SIZE >::offset |
offset within the file of the block
Definition at line 49 of file bid.h.
Referenced by stxxl::DiskAllocator::delete_block(), stxxl::block_manager::delete_block(), stxxl::DiskAllocator::new_blocks(), stxxl::operator!=(), stxxl::prefetch_pool< BlockType >::bid_hash::operator()(), stxxl::btree::iterator_map< BTreeType >::bid_comp::operator()(), stxxl::BID< raw_size >::operator=(), stxxl::operator==(), stxxl::typed_block< RawSize_, T_, NRef_, InfoType_ >::read(), stxxl::buffered_writer< block_type >::write(), and stxxl::typed_block< RawSize_, T_, NRef_, InfoType_ >::write().
file* stxxl::BID< SIZE >::storage |
pointer to the file of the block
Definition at line 48 of file bid.h.
Referenced by stxxl::block_manager::delete_block(), stxxl::operator!=(), stxxl::prefetch_pool< BlockType >::bid_hash::operator()(), stxxl::btree::iterator_map< BTreeType >::bid_comp::operator()(), stxxl::BID< raw_size >::operator=(), stxxl::operator==(), stxxl::typed_block< RawSize_, T_, NRef_, InfoType_ >::read(), and stxxl::typed_block< RawSize_, T_, NRef_, InfoType_ >::write().