xapian-core  1.4.25
Public Member Functions | Private Attributes | List of all members
Glass::RootInfo Class Reference

#include <glass_version.h>

+ Collaboration diagram for Glass::RootInfo:

Public Member Functions

void init (unsigned blocksize_, uint4 compress_min_)
 
void serialise (std::string &s) const
 
bool unserialise (const char **p, const char *end)
 
glass_block_t get_root () const
 
int get_level () const
 
glass_tablesize_t get_num_entries () const
 
bool get_root_is_fake () const
 
bool get_sequential () const
 
unsigned get_blocksize () const
 
uint4 get_compress_min () const
 
const std::string & get_free_list () const
 
void set_level (int level_)
 
void set_num_entries (glass_tablesize_t n)
 
void set_root_is_fake (bool f)
 
void set_sequential (bool f)
 
void set_root (glass_block_t root_)
 
void set_blocksize (unsigned b)
 
void set_free_list (const std::string &s)
 

Private Attributes

glass_block_t root
 
unsigned level
 
glass_tablesize_t num_entries
 
bool root_is_fake
 
bool sequential
 
unsigned blocksize
 
uint4 compress_min
 Should be >= 4 or 0 for no compression. More...
 
std::string fl_serialised
 

Detailed Description

Definition at line 41 of file glass_version.h.

Member Function Documentation

◆ get_blocksize()

unsigned Glass::RootInfo::get_blocksize ( ) const
inline

◆ get_compress_min()

uint4 Glass::RootInfo::get_compress_min ( ) const
inline

Definition at line 68 of file glass_version.h.

References compress_min.

Referenced by GlassTable::basic_open(), and GlassTable::create_and_open().

◆ get_free_list()

const std::string& Glass::RootInfo::get_free_list ( ) const
inline

Definition at line 69 of file glass_version.h.

References fl_serialised.

Referenced by GlassTable::basic_open(), GlassTable::cancel(), and GlassDatabase::compact().

◆ get_level()

int Glass::RootInfo::get_level ( ) const
inline

Definition at line 60 of file glass_version.h.

Referenced by GlassTable::basic_open(), and GlassTable::cancel().

◆ get_num_entries()

glass_tablesize_t Glass::RootInfo::get_num_entries ( ) const
inline

Definition at line 61 of file glass_version.h.

References num_entries.

Referenced by GlassTable::basic_open(), and GlassTable::cancel().

◆ get_root()

glass_block_t Glass::RootInfo::get_root ( ) const
inline

Definition at line 59 of file glass_version.h.

References root.

Referenced by GlassTable::basic_open(), GlassTable::cancel(), and GlassTable::open().

◆ get_root_is_fake()

bool Glass::RootInfo::get_root_is_fake ( ) const
inline

Definition at line 62 of file glass_version.h.

References root_is_fake.

Referenced by GlassTable::basic_open(), and GlassTable::cancel().

◆ get_sequential()

bool Glass::RootInfo::get_sequential ( ) const
inline

Definition at line 63 of file glass_version.h.

References sequential.

Referenced by GlassTable::basic_open(), and GlassTable::cancel().

◆ init()

void Glass::RootInfo::init ( unsigned  blocksize_,
uint4  compress_min_ 
)

◆ serialise()

void Glass::RootInfo::serialise ( std::string &  s) const

Definition at line 423 of file glass_version.cc.

References pack_string(), pack_uint(), and GlassVersion::root.

Referenced by GlassVersion::write().

◆ set_blocksize()

void Glass::RootInfo::set_blocksize ( unsigned  b)
inline

Definition at line 76 of file glass_version.h.

References AssertRel.

Referenced by GlassTable::commit().

◆ set_free_list()

void Glass::RootInfo::set_free_list ( const std::string &  s)
inline

Definition at line 80 of file glass_version.h.

Referenced by GlassTable::commit(), and GlassDatabase::compact().

◆ set_level()

void Glass::RootInfo::set_level ( int  level_)
inline

Definition at line 71 of file glass_version.h.

Referenced by GlassTable::commit().

◆ set_num_entries()

void Glass::RootInfo::set_num_entries ( glass_tablesize_t  n)
inline

Definition at line 72 of file glass_version.h.

Referenced by GlassTable::commit().

◆ set_root()

void Glass::RootInfo::set_root ( glass_block_t  root_)
inline

Definition at line 75 of file glass_version.h.

Referenced by GlassTable::commit().

◆ set_root_is_fake()

void Glass::RootInfo::set_root_is_fake ( bool  f)
inline

Definition at line 73 of file glass_version.h.

Referenced by GlassTable::commit().

◆ set_sequential()

void Glass::RootInfo::set_sequential ( bool  f)
inline

Definition at line 74 of file glass_version.h.

Referenced by GlassTable::commit().

◆ unserialise()

bool Glass::RootInfo::unserialise ( const char **  p,
const char *  end 
)

Member Data Documentation

◆ blocksize

unsigned Glass::RootInfo::blocksize
private

Definition at line 47 of file glass_version.h.

Referenced by get_blocksize(), and GlassVersion::GlassVersion().

◆ compress_min

uint4 Glass::RootInfo::compress_min
private

Should be >= 4 or 0 for no compression.

Definition at line 49 of file glass_version.h.

Referenced by get_compress_min().

◆ fl_serialised

std::string Glass::RootInfo::fl_serialised
private

Definition at line 50 of file glass_version.h.

Referenced by get_free_list().

◆ level

unsigned Glass::RootInfo::level
private

Definition at line 43 of file glass_version.h.

◆ num_entries

glass_tablesize_t Glass::RootInfo::num_entries
private

Definition at line 44 of file glass_version.h.

Referenced by get_num_entries().

◆ root

glass_block_t Glass::RootInfo::root
private

Definition at line 42 of file glass_version.h.

Referenced by get_root().

◆ root_is_fake

bool Glass::RootInfo::root_is_fake
private

Definition at line 45 of file glass_version.h.

Referenced by get_root_is_fake().

◆ sequential

bool Glass::RootInfo::sequential
private

Definition at line 46 of file glass_version.h.

Referenced by get_sequential().


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