Cursor_ Class Reference

#include <flint_cursor.h>

List of all members.

Public Member Functions

 Cursor_ ()
 Constructor, to initialise important elements.

Public Attributes

bytep
 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_ &)


Detailed Description

Definition at line 34 of file flint_cursor.h.


Constructor & Destructor Documentation

Cursor_::Cursor_ ( const Cursor_  )  [private]

Cursor_::Cursor_ (  )  [inline]

Constructor, to initialise important elements.

Definition at line 42 of file flint_cursor.h.


Member Function Documentation

Cursor_& Cursor_::operator= ( const Cursor_  )  [private]


Member Data Documentation

byte* Cursor_::p

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().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.