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

#include <glass_table.h>

+ Inheritance diagram for Glass::LeafItem_wr:
+ Collaboration diagram for Glass::LeafItem_wr:

Public Member Functions

 LeafItem_wr (uint8_t *p_, int c)
 
 LeafItem_wr (uint8_t *p_)
 
void set_component_of (int i)
 
void set_size (int new_size)
 
void form_key (const std::string &key_)
 
void set_tag (int cd, const char *start, int len, bool compressed, int i, int m)
 
void fake_root_item ()
 
 operator const LeafItem () const
 
- Public Member Functions inherited from Glass::LeafItem_base< uint8_t *>
 LeafItem_base (uint8_t * p_, int c)
 
 LeafItem_base (uint8_t * p_)
 
uint8_t * get_address () const
 
int size () const
 SIZE in diagram above. More...
 
bool get_compressed () const
 
bool first_component () const
 
bool last_component () const
 
int component_of () const
 
Key key () const
 
void append_chunk (std::string *tag) const
 
bool decompress_chunk (CompressionStream &comp_stream, string &tag) const
 

Static Public Member Functions

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

Private Member Functions

void set_key_len (int x)
 
void setI (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::LeafItem_base< uint8_t *>
int get_key_len () const
 
int getI () const
 
- Static Protected Member Functions inherited from Glass::LeafItem_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::LeafItem_base< uint8_t *>
uint8_t * p
 

Detailed Description

Definition at line 218 of file glass_table.h.

Constructor & Destructor Documentation

◆ LeafItem_wr() [1/2]

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

Definition at line 228 of file glass_table.h.

◆ LeafItem_wr() [2/2]

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

Definition at line 229 of file glass_table.h.

Member Function Documentation

◆ fake_root_item()

void Glass::LeafItem_wr::fake_root_item ( )
inline

Definition at line 272 of file glass_table.h.

References Glass::I_LAST_BIT, and Glass::Key::p.

Referenced by GlassTable::read_root().

◆ form_key()

void Glass::LeafItem_wr::form_key ( const std::string &  key_)
inline

◆ operator const LeafItem()

Glass::LeafItem_wr::operator const LeafItem ( ) const
inline

Definition at line 277 of file glass_table.h.

References Glass::Key::p.

◆ set_component_of()

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

Definition at line 230 of file glass_table.h.

References AssertRel, Glass::I_FIRST_BIT, and Glass::Key::p.

◆ set_key_len()

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

Definition at line 219 of file glass_table.h.

References AssertRel, GLASS_BTREE_MAX_KEY_LEN, Glass::I2, and Glass::Key::p.

◆ set_size()

void Glass::LeafItem_wr::set_size ( int  new_size)
inline

Definition at line 235 of file glass_table.h.

References AssertRel, and rare.

◆ set_tag()

void Glass::LeafItem_wr::set_tag ( int  cd,
const char *  start,
int  len,
bool  compressed,
int  i,
int  m 
)
inline

◆ setD()

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

◆ setI()

void Glass::LeafItem_wr::setI ( int  x)
inlineprivate

Definition at line 224 of file glass_table.h.

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

◆ setX()

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

Definition at line 225 of file glass_table.h.

References unaligned_write2().


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