#include <chert_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 chert_cursor.h.
| Cursor::Cursor | ( | const Cursor & | ) | [private] |
| Cursor::Cursor | ( | ) | [inline] |
| int Cursor::c |
offset in the block's directory
Definition at line 48 of file chert_cursor.h.
Referenced by ChertTable::add_item(), ChertTable::add_kt(), ChertTableCheck::block_check(), ChertTable::commit(), ChertTable::delete_item(), ChertTable::enter_key(), ChertCursor::find_entry(), ChertTable::next_default(), ChertTable::next_for_sequential(), ChertTable::prev_default(), ChertTable::prev_for_sequential(), and ChertTable::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 chert_cursor.h.
Referenced by ChertTable::add_item(), ChertTable::alter(), ChertTableCheck::block_check(), ChertTable::block_to_cursor(), ChertTable::cancel(), ChertTableCheck::check(), ChertCursor::ChertCursor(), ChertTable::commit(), ChertTable::delete_item(), ChertTable::do_open_to_read(), ChertTable::do_open_to_write(), ChertTable::enter_key(), ChertTable::next_for_sequential(), ChertTable::prev_for_sequential(), ChertTable::read_root(), ChertCursor::rebuild(), and ChertTable::split_root().
pointer to a block
Definition at line 46 of file chert_cursor.h.
Referenced by ChertTable::add(), ChertTable::add_item(), ChertTable::add_kt(), ChertTable::alter(), ChertTableCheck::block_check(), ChertTable::block_to_cursor(), ChertCursor::ChertCursor(), ChertTable::close(), ChertTable::delete_item(), ChertTable::do_open_to_read(), ChertTable::do_open_to_write(), ChertTable::enter_key(), ChertTable::next_default(), ChertTable::next_for_sequential(), ChertTable::prev_default(), ChertTable::prev_for_sequential(), ChertTable::read_root(), ChertCursor::rebuild(), ChertTable::split_root(), and ChertCursor::~ChertCursor().
| bool Cursor::rewrite |
true if the block is not the same as on disk, and so needs rewriting
Definition at line 59 of file chert_cursor.h.
Referenced by ChertTable::alter(), ChertTable::block_to_cursor(), ChertTable::cancel(), ChertTable::commit(), ChertTable::delete_item(), ChertTable::enter_key(), and ChertTable::split_root().