xapian-core  1.4.26
Public Member Functions | Private Member Functions | List of all members
Item_wr Class Reference

#include <chert_table.h>

+ Inheritance diagram for Item_wr:
+ Collaboration diagram for Item_wr:

Public Member Functions

 Item_wr (uint8_t *p_, int c)
 
 Item_wr (uint8_t *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). More...
 
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. More...
 
void form_key (const std::string &key_)
 
void set_tag (int cd, const char *start, int len, bool compressed)
 
void fake_root_item ()
 
- Public Member Functions inherited from Item_base< uint8_t *>
 Item_base (uint8_t * p_, int c)
 
 Item_base (uint8_t * p_)
 
uint8_t * get_address () const
 
int size () const
 I in diagram above. More...
 
bool get_compressed () const
 
int component_of () const
 
int components_of () const
 
Key key () const
 
void append_chunk (std::string *tag) const
 
uint4 block_given_by () const
 Get this item's tag as a block number (this block should not be at level 0). More...
 

Private Member Functions

void set_key_len (int x)
 

Additional Inherited Members

- Protected Attributes inherited from Item_base< uint8_t *>
uint8_t * p
 

Detailed Description

Definition at line 237 of file chert_table.h.

Constructor & Destructor Documentation

◆ Item_wr() [1/2]

Item_wr::Item_wr ( uint8_t *  p_,
int  c 
)
inline

Definition at line 241 of file chert_table.h.

◆ Item_wr() [2/2]

Item_wr::Item_wr ( uint8_t *  p_)
inlineexplicit

Definition at line 242 of file chert_table.h.

Member Function Documentation

◆ fake_root_item()

void Item_wr::fake_root_item ( )
inline

Definition at line 314 of file chert_table.h.

References C2, I2, and K1.

Referenced by ChertTable::read_root().

◆ form_key()

void Item_wr::form_key ( const std::string &  key_)
inline

Definition at line 291 of file chert_table.h.

References C2, CHERT_BTREE_MAX_KEY_LEN, I2, K1, Key::p, Xapian::Internal::str(), and STRINGIZE.

◆ form_null_key()

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 286 of file chert_table.h.

References BYTES_PER_BLOCK_NUMBER, I2, K1, Key::p, and setint4().

Referenced by ChertTable::enter_key(), and ChertTable::split_root().

◆ set_block_given_by()

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 273 of file chert_table.h.

References BYTES_PER_BLOCK_NUMBER, Key::p, and setint4().

Referenced by ChertTable::alter().

◆ set_component_of()

void Item_wr::set_component_of ( int  i)
inline

Definition at line 243 of file chert_table.h.

References C2, getK(), I2, Key::p, and setint2().

◆ set_components_of()

void Item_wr::set_components_of ( int  m)
inline

Definition at line 246 of file chert_table.h.

References getK(), I2, Key::p, and setint2().

◆ set_key_and_block()

void Item_wr::set_key_and_block ( Key  newkey,
int  truncate_size,
uint4  n 
)
inline

◆ set_key_len()

void Item_wr::set_key_len ( int  x)
inlineprivate

Definition at line 238 of file chert_table.h.

References I2, Key::p, and setint1().

◆ set_size()

void Item_wr::set_size ( int  l)
inline

Definition at line 276 of file chert_table.h.

References AssertRel, CHERT_MAX_ITEM_SIZE, Key::p, rare, and setint2().

◆ set_tag()

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

Definition at line 309 of file chert_table.h.

References Key::p.


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