#include <bcursor.h>
Public Member Functions | |
Cursor () | |
Constructor, to initialise important elements. | |
Public Attributes | |
byte * | p |
pointer to a block | |
int | c |
offset in the block's directory | |
uint4 | n |
block number | |
bool | rewrite |
true if the block is not the same as on disk, and so needs rewriting | |
Private Member Functions | |
Cursor (const Cursor &) | |
Cursor & | operator= (const Cursor &) |
Definition at line 34 of file bcursor.h.
Cursor::Cursor | ( | const Cursor & | ) | [private] |
Cursor::Cursor | ( | ) | [inline] |
pointer to a block
Definition at line 46 of file bcursor.h.
Referenced by Btree::add(), Btree::add_item(), Btree::add_kt(), Btree::alter(), Bcursor::Bcursor(), BtreeCheck::block_check(), Btree::block_to_cursor(), Btree::close(), Btree::delete_item(), Btree::do_open_to_read(), Btree::do_open_to_write(), Btree::enter_key(), Btree::next_default(), Btree::next_for_sequential(), Btree::prev_default(), Btree::prev_for_sequential(), Btree::read_root(), and Btree::split_root().
int Cursor::c |
offset in the block's directory
Definition at line 48 of file bcursor.h.
Referenced by Btree::add_item(), Btree::add_kt(), Btree::commit(), Btree::delete_item(), Btree::enter_key(), Bcursor::find_entry(), Btree::next_default(), Btree::next_for_sequential(), Btree::prev_default(), Btree::prev_for_sequential(), and Btree::split_root().
uint4 Cursor::n |
block number
n is kept in tandem with p. The unassigned state is when p == 0 and n == BLK_UNUSED.
Setting n to BLK_UNUSED is necessary in at least some cases.
Definition at line 57 of file bcursor.h.
Referenced by Btree::add_item(), Btree::alter(), Bcursor::Bcursor(), BtreeCheck::block_check(), Btree::block_to_cursor(), Btree::commit(), Btree::delete_item(), Btree::enter_key(), Btree::next_for_sequential(), Btree::prev_for_sequential(), Btree::read_root(), and Btree::split_root().
bool Cursor::rewrite |
true if the block is not the same as on disk, and so needs rewriting
Definition at line 59 of file bcursor.h.
Referenced by Btree::alter(), Btree::block_to_cursor(), Btree::cancel(), Btree::commit(), Btree::delete_item(), Btree::enter_key(), and Btree::split_root().