xapian-core  1.4.27
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
Glass::BItem_wr Class Reference

#include <glass_table.h>

+ Inheritance diagram for Glass::BItem_wr:
+ Collaboration diagram for Glass::BItem_wr:

Public Member Functions

 BItem_wr (uint8_t *p_, int c)
 
 BItem_wr (uint8_t *p_)
 
void set_component_of (int i)
 
void set_key_and_block (Key newkey, uint4 n)
 
void set_truncated_key_and_block (Key newkey, int new_comp, 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 form_null_key (uint4 n)
 Form an item with a null key and with block number n in the tag. More...
 
 operator const BItem () const
 
- Public Member Functions inherited from Glass::BItem_base< uint8_t *>
 BItem_base (uint8_t * p_, int c)
 
 BItem_base (uint8_t * p_)
 
uint8_t * get_address () const
 
int size () const
 SIZE in diagram above. More...
 
Key key () const
 
uint4 block_given_by () const
 Get this item's tag as a block number (this block should not be at level 0). More...
 
int component_of () const
 

Static Public Member Functions

static void setD (uint8_t *q, int c, int x)
 

Private Member Functions

void set_key_len (int x)
 

Static Private Member Functions

static void setX (uint8_t *q, int c, int x)
 

Additional Inherited Members

- Protected Member Functions inherited from Glass::BItem_base< uint8_t *>
int get_key_len () const
 
- Static Protected Member Functions inherited from Glass::BItem_base< uint8_t *>
static int getD (const uint8_t *q, int c)
 
static int getX (const uint8_t *q, int c)
 
- Protected Attributes inherited from Glass::BItem_base< uint8_t *>
uint8_t * p
 

Detailed Description

Definition at line 341 of file glass_table.h.

Constructor & Destructor Documentation

◆ BItem_wr() [1/2]

Glass::BItem_wr::BItem_wr ( uint8_t *  p_,
int  c 
)
inline

Definition at line 350 of file glass_table.h.

◆ BItem_wr() [2/2]

Glass::BItem_wr::BItem_wr ( uint8_t *  p_)
inlineexplicit

Definition at line 351 of file glass_table.h.

Member Function Documentation

◆ form_null_key()

void Glass::BItem_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 385 of file glass_table.h.

Referenced by GlassTable::add_branch_item(), and GlassTable::split_root().

◆ operator const BItem()

Glass::BItem_wr::operator const BItem ( ) const
inline

Definition at line 390 of file glass_table.h.

References Glass::Key::p.

◆ set_block_given_by()

void Glass::BItem_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 380 of file glass_table.h.

References Glass::Key::p, and unaligned_write4().

Referenced by GlassTable::alter().

◆ set_component_of()

void Glass::BItem_wr::set_component_of ( int  i)
inline

Definition at line 352 of file glass_table.h.

References Glass::Key::p.

◆ set_key_and_block()

void Glass::BItem_wr::set_key_and_block ( Key  newkey,
uint4  n 
)
inline

◆ set_key_len()

void Glass::BItem_wr::set_key_len ( int  x)
inlineprivate

◆ set_truncated_key_and_block()

void Glass::BItem_wr::set_truncated_key_and_block ( Key  newkey,
int  new_comp,
int  truncate_size,
uint4  n 
)
inline

◆ setD()

static void Glass::BItem_wr::setD ( uint8_t *  q,
int  c,
int  x 
)
inlinestatic

Definition at line 391 of file glass_table.h.

References Assert, AssertRel, and unaligned_write2().

Referenced by GlassTable::add_item_to_branch(), and GlassTable::compact().

◆ setX()

static void Glass::BItem_wr::setX ( uint8_t *  q,
int  c,
int  x 
)
inlinestaticprivate

Definition at line 347 of file glass_table.h.

References unaligned_write2().


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