Item_wr_ Class Reference

#include <flint_table.h>

Inheritance diagram for Item_wr_:

Inheritance graph
[legend]
Collaboration diagram for Item_wr_:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Item_wr_ (byte *p_, int c)
 Item_wr_ (byte *p_)
void set_component_of (int i)
void set_components_of (int m)
void set_key_and_block (Key_ newkey, int truncate_size, uint4 n)
void set_block_given_by (uint4 n)
 Set this item's tag to point to block n (this block should not be at level 0).
void set_size (int l)
void form_null_key (uint4 n)
 Form an item with a null key and with block number n in the tag.
void form_key (const string &key_)
void set_tag (int cd, const char *start, int len, bool compressed)
void fake_root_item ()

Private Member Functions

void set_key_len (int x)

Detailed Description

Definition at line 157 of file flint_table.h.


Constructor & Destructor Documentation

Item_wr_::Item_wr_ ( byte p_,
int  c 
) [inline]

Definition at line 161 of file flint_table.h.

Item_wr_::Item_wr_ ( byte p_  )  [inline]

Definition at line 162 of file flint_table.h.


Member Function Documentation

void Item_wr_::set_key_len ( int  x  )  [inline, private]

Definition at line 158 of file flint_table.h.

References I2, Item_base_< byte * >::p, and setint1().

Referenced by fake_root_item(), form_key(), and form_null_key().

void Item_wr_::set_component_of ( int  i  )  [inline]

Definition at line 163 of file flint_table.h.

References C2, getK, I2, Item_base_< byte * >::p, and setint2().

Referenced by FlintTable::add(), FlintTable::del(), fake_root_item(), and form_key().

void Item_wr_::set_components_of ( int  m  )  [inline]

Definition at line 166 of file flint_table.h.

References getK, I2, Item_base_< byte * >::p, and setint2().

Referenced by FlintTable::add(), and fake_root_item().

void Item_wr_::set_key_and_block ( Key_  newkey,
int  truncate_size,
uint4  n 
) [inline]

Definition at line 170 of file flint_table.h.

References C2, Key_::get_address(), I2, K1, Key_::length(), Item_base_< byte * >::p, setint1(), setint2(), and setint4().

Referenced by FlintTable::enter_key().

void Item_wr_::set_block_given_by ( uint4  n  )  [inline]

Set this item's tag to point to block n (this block should not be at level 0).

Definition at line 192 of file flint_table.h.

References BYTES_PER_BLOCK_NUMBER, Item_base_< byte * >::p, setint4(), and Item_base_< byte * >::size().

void Item_wr_::set_size ( int  l  )  [inline]

Definition at line 195 of file flint_table.h.

References Item_base_< byte * >::p, and setint2().

Referenced by fake_root_item(), form_null_key(), and set_tag().

void Item_wr_::form_null_key ( uint4  n  )  [inline]

Form an item with a null key and with block number n in the tag.

Definition at line 198 of file flint_table.h.

References I2, K1, Item_base_< byte * >::p, set_key_len(), set_size(), and setint4().

Referenced by FlintTable::split_root().

void Item_wr_::form_key ( const string &  key_  )  [inline]

Definition at line 203 of file flint_table.h.

References C2, FLINT_BTREE_MAX_KEY_LEN, I2, K1, om_tostring(), Item_base_< byte * >::p, set_component_of(), set_key_len(), and STRINGIZE.

Referenced by FlintTable::form_key().

void Item_wr_::set_tag ( int  cd,
const char *  start,
int  len,
bool  compressed 
) [inline]

Definition at line 221 of file flint_table.h.

References Item_base_< byte * >::p, and set_size().

Referenced by FlintTable::add().

void Item_wr_::fake_root_item (  )  [inline]

Definition at line 226 of file flint_table.h.

References C2, I2, K1, set_component_of(), set_components_of(), set_key_len(), and set_size().


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.