Cursor Class Reference

#include <bcursor.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 &)
Cursoroperator= (const Cursor &)


Detailed Description

Definition at line 34 of file bcursor.h.


Constructor & Destructor Documentation

Cursor::Cursor ( const Cursor  )  [private]

Cursor::Cursor (  )  [inline]

Constructor, to initialise important elements.

Definition at line 42 of file bcursor.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 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().


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.