Brass::Item_wr Class Reference

#include <brass_table.h>

Inheritance diagram for Brass::Item_wr:

Inheritance graph
[legend]
Collaboration diagram for Brass::Item_wr:

Collaboration graph
[legend]

List of all members.

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)


Detailed Description

Definition at line 185 of file brass_table.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

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]

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().


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

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.