xapian-core
1.4.26
|
#include <glass_cursor.h>
Public Member Functions | |
Cursor () | |
Constructor. More... | |
~Cursor () | |
uint8_t * | init (unsigned block_size) |
const uint8_t * | clone (const Cursor &o) |
void | swap (Cursor &o) |
void | destroy () |
uint4 & | refs () const |
uint4 | get_n () const |
Get the block number. More... | |
void | set_n (uint4 n) |
const uint8_t * | get_p () const |
Get pointer to block. More... | |
uint8_t * | get_modifiable_p (unsigned block_size) |
Public Attributes | |
int | c |
offset in the block's directory 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 &) | |
Cursor & | operator= (const Cursor &) |
Private Attributes | |
char * | data |
Pointer to reference counted data. More... | |
Definition at line 40 of file glass_cursor.h.
|
private |
|
inline |
Constructor.
Definition at line 50 of file glass_cursor.h.
|
inline |
Definition at line 52 of file glass_cursor.h.
References destroy().
|
inline |
Definition at line 68 of file glass_cursor.h.
References data, destroy(), and refs().
Referenced by GlassTable::block_to_cursor(), GlassCursor::GlassCursor(), GlassTable::next_for_sequential(), GlassTable::prev_for_sequential(), and GlassCursor::rebuild().
|
inline |
Definition at line 83 of file glass_cursor.h.
References data, refs(), and rewrite.
Referenced by clone(), GlassTable::close(), GlassCursor::rebuild(), and ~Cursor().
|
inline |
Definition at line 121 of file glass_cursor.h.
|
inline |
Get the block number.
Returns BLK_UNUSED if no block is currently loaded.
Definition at line 101 of file glass_cursor.h.
References alignment_cast(), and Assert.
Referenced by GlassTableCheck::block_check(), GlassTableCheck::check(), GlassTable::commit(), GlassTable::next_for_sequential(), GlassTable::prev_for_sequential(), and GlassTableCheck::report_cursor().
|
inline |
Get pointer to block.
Returns NULL if no block is currently loaded.
Definition at line 116 of file glass_cursor.h.
References rare.
Referenced by GlassTableCheck::block_check(), GlassTable::next_default(), GlassTable::next_for_sequential(), and GlassTable::prev_default().
|
inline |
Definition at line 54 of file glass_cursor.h.
References BLK_UNUSED, c, refs(), rewrite, and set_n().
Referenced by GlassTable::block_to_cursor(), GlassTable::cancel(), GlassTable::commit(), GlassTable::next_for_sequential(), GlassTable::prev_for_sequential(), and GlassCursor::rebuild().
|
inline |
Definition at line 92 of file glass_cursor.h.
References alignment_cast(), Assert, and data.
Referenced by clone(), destroy(), get_modifiable_p(), and init().
|
inline |
Definition at line 106 of file glass_cursor.h.
References alignment_cast(), and Assert.
Referenced by GlassTable::block_to_cursor(), init(), GlassTable::next_for_sequential(), and GlassTable::prev_for_sequential().
|
inline |
Definition at line 77 of file glass_cursor.h.
References c, data, and rewrite.
Referenced by GlassCursor::rebuild().
int Glass::Cursor::c |
offset in the block's directory
Definition at line 134 of file glass_cursor.h.
Referenced by GlassTableCheck::block_check(), GlassCursor::find_entry(), GlassCursor::get_key(), init(), GlassTable::next_default(), GlassTable::next_for_sequential(), GlassTable::prev_default(), GlassTable::prev_for_sequential(), GlassTableCheck::report_cursor(), and swap().
|
private |
bool Glass::Cursor::rewrite |
true if the block is not the same as on disk, and so needs rewriting
Definition at line 137 of file glass_cursor.h.
Referenced by GlassTable::block_to_cursor(), GlassTable::cancel(), destroy(), init(), GlassTableCheck::report_cursor(), and swap().