xapian-core  1.4.25
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Cursor Class Reference

#include <chert_cursor.h>

Public Member Functions

 Cursor ()
 Constructor, to initialise important elements. More...

Public Attributes

uint8_t * p
 pointer to a block More...
int c
 offset in the block's directory More...
uint4 n
 block number More...
bool rewrite
 true if the block is not the same as on disk, and so needs rewriting More...

Private Member Functions

 Cursor (const Cursor &)
Cursoroperator= (const Cursor &)

Detailed Description

Definition at line 33 of file chert_cursor.h.

Constructor & Destructor Documentation

◆ Cursor() [1/2]

Cursor::Cursor ( const Cursor )

◆ Cursor() [2/2]

Cursor::Cursor ( )

Constructor, to initialise important elements.

Definition at line 41 of file chert_cursor.h.

Member Function Documentation

◆ operator=()

Cursor& Cursor::operator= ( const Cursor )

Member Data Documentation

◆ c

int Cursor::c

◆ n

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 56 of file chert_cursor.h.

Referenced by ChertTableCheck::block_check(), ChertTable::block_to_cursor(), ChertTable::cancel(), ChertTableCheck::check(), ChertCursor::ChertCursor(), ChertTable::commit(), ChertTable::do_open_to_read(), ChertTable::next_for_sequential(), ChertTable::prev_for_sequential(), and ChertCursor::rebuild().

◆ p

uint8_t* Cursor::p

◆ rewrite

bool Cursor::rewrite

true if the block is not the same as on disk, and so needs rewriting

Definition at line 58 of file chert_cursor.h.

Referenced by ChertTable::block_to_cursor(), ChertTable::cancel(), and ChertTable::commit().

The documentation for this class was generated from the following file: