#include <brass_table.h>


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 std::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) |
Definition at line 185 of file brass_table.h.
| Brass::Item_wr::Item_wr | ( | byte * | p_, | |
| int | c | |||
| ) | [inline] |
Definition at line 189 of file brass_table.h.
| Brass::Item_wr::Item_wr | ( | byte * | p_ | ) | [inline] |
Definition at line 190 of file brass_table.h.
| void Brass::Item_wr::fake_root_item | ( | ) | [inline] |
Definition at line 258 of file brass_table.h.
References C2, I2, K1, set_component_of(), set_components_of(), set_key_len(), and set_size().
| void Brass::Item_wr::form_key | ( | const std::string & | key_ | ) | [inline] |
Definition at line 235 of file brass_table.h.
References BRASS_BTREE_MAX_KEY_LEN, C2, I2, K1, Brass::Item_base< byte * >::p, set_component_of(), set_key_len(), Xapian::Internal::str(), and STRINGIZE.
Referenced by BrassTable::form_key().
| void Brass::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 230 of file brass_table.h.
References BYTES_PER_BLOCK_NUMBER, I2, K1, Brass::Item_base< byte * >::p, set_key_len(), set_size(), and setint4().
Referenced by BrassTable::split_root().
| void Brass::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 221 of file brass_table.h.
References BYTES_PER_BLOCK_NUMBER, Brass::Item_base< byte * >::p, setint4(), and Brass::Item_base< byte * >::size().
| void Brass::Item_wr::set_component_of | ( | int | i | ) | [inline] |
Definition at line 191 of file brass_table.h.
References C2, getK, I2, Brass::Item_base< byte * >::p, and setint2().
Referenced by BrassTable::add(), BrassTable::del(), fake_root_item(), and form_key().
| void Brass::Item_wr::set_components_of | ( | int | m | ) | [inline] |
Definition at line 194 of file brass_table.h.
References getK, I2, Brass::Item_base< byte * >::p, and setint2().
Referenced by BrassTable::add(), and fake_root_item().
| void Brass::Item_wr::set_key_and_block | ( | Key | newkey, | |
| int | truncate_size, | |||
| uint4 | n | |||
| ) | [inline] |
Definition at line 198 of file brass_table.h.
References AssertRel, BYTES_PER_BLOCK_NUMBER, C2, Brass::Key::get_address(), I2, K1, Brass::Key::length(), Brass::Item_base< byte * >::p, setint1(), setint2(), and setint4().
Referenced by BrassTable::enter_key().
| void Brass::Item_wr::set_key_len | ( | int | x | ) | [inline, private] |
Definition at line 186 of file brass_table.h.
References I2, Brass::Item_base< byte * >::p, and setint1().
Referenced by fake_root_item(), form_key(), and form_null_key().
| void Brass::Item_wr::set_size | ( | int | l | ) | [inline] |
Definition at line 224 of file brass_table.h.
References AssertRel, Brass::Item_base< byte * >::p, and setint2().
Referenced by fake_root_item(), form_null_key(), and set_tag().
| void Brass::Item_wr::set_tag | ( | int | cd, | |
| const char * | start, | |||
| int | len, | |||
| bool | compressed | |||
| ) | [inline] |
Definition at line 253 of file brass_table.h.
References Brass::Item_base< byte * >::p, and set_size().
Referenced by BrassTable::add().