#include <flint_cursor.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 flint_cursor.h.
Cursor_::Cursor_ | ( | const Cursor_ & | ) | [private] |
Cursor_::Cursor_ | ( | ) | [inline] |
pointer to a block
Definition at line 46 of file flint_cursor.h.
Referenced by FlintTable::add(), FlintTable::add_item(), FlintTable::add_kt(), FlintTable::alter(), BtreeCheck::block_check(), FlintTable::block_to_cursor(), FlintTable::close(), FlintTable::delete_item(), FlintTable::do_open_to_read(), FlintTable::do_open_to_write(), FlintTable::enter_key(), FlintCursor::FlintCursor(), FlintTable::next_default(), FlintTable::next_for_sequential(), FlintTable::prev_default(), FlintTable::prev_for_sequential(), FlintTable::read_root(), and FlintTable::split_root().
int Cursor_::c |
offset in the block's directory
Definition at line 48 of file flint_cursor.h.
Referenced by FlintTable::add_item(), FlintTable::add_kt(), FlintTable::commit(), FlintTable::delete_item(), FlintTable::enter_key(), FlintCursor::find_entry(), FlintTable::next_default(), FlintTable::next_for_sequential(), FlintTable::prev_default(), FlintTable::prev_for_sequential(), and FlintTable::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 flint_cursor.h.
Referenced by FlintTable::add_item(), FlintTable::alter(), BtreeCheck::block_check(), FlintTable::block_to_cursor(), FlintTable::commit(), FlintTable::delete_item(), FlintTable::enter_key(), FlintCursor::FlintCursor(), FlintTable::next_for_sequential(), FlintTable::prev_for_sequential(), FlintTable::read_root(), and FlintTable::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 flint_cursor.h.
Referenced by FlintTable::alter(), FlintTable::block_to_cursor(), FlintTable::cancel(), FlintTable::commit(), FlintTable::delete_item(), FlintTable::enter_key(), and FlintTable::split_root().