#include <btree.h>
Inheritance diagram for Item_wr:
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) |
void | fake_root_item () |
Private Member Functions | |
void | set_key_len (int x) |
Definition at line 217 of file btree.h.
void Item_wr::set_key_len | ( | int | x | ) | [inline, private] |
Definition at line 218 of file btree.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 223 of file btree.h.
References C2, GETK, I2, Item_base< byte * >::p, and SETINT2().
Referenced by Btree::add(), Btree::del(), fake_root_item(), and form_key().
void Item_wr::set_components_of | ( | int | m | ) | [inline] |
Definition at line 226 of file btree.h.
References GETK, I2, Item_base< byte * >::p, and SETINT2().
Referenced by Btree::add(), and fake_root_item().
void Item_wr::set_key_and_block | ( | Key | newkey, | |
int | truncate_size, | |||
uint4 | n | |||
) | [inline] |
Definition at line 230 of file btree.h.
References C2, Key::get_address(), I2, K1, Key::length(), Item_base< byte * >::p, set_int4(), SETINT1(), and SETINT2().
Referenced by Btree::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 252 of file btree.h.
References BYTES_PER_BLOCK_NUMBER, Item_base< byte * >::p, set_int4(), and Item_base< byte * >::size().
void Item_wr::set_size | ( | int | l | ) | [inline] |
Definition at line 255 of file btree.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 258 of file btree.h.
References I2, K1, Item_base< byte * >::p, set_int4(), set_key_len(), and set_size().
Referenced by Btree::split_root().
void Item_wr::form_key | ( | const string & | key_ | ) | [inline] |
Definition at line 263 of file btree.h.
References Assert, BTREE_MAX_KEY_LEN, C2, I2, K1, Item_base< byte * >::p, set_component_of(), and set_key_len().
Referenced by Btree::form_key().
void Item_wr::set_tag | ( | int | cd, | |
const char * | start, | |||
int | len | |||
) | [inline] |
Definition at line 274 of file btree.h.
References Item_base< byte * >::p, and set_size().
Referenced by Btree::add().
void Item_wr::fake_root_item | ( | ) | [inline] |
Definition at line 278 of file btree.h.
References C2, I2, K1, set_component_of(), set_components_of(), set_key_len(), and set_size().