BrassTableCheck Class Reference

#include <brass_check.h>

Inheritance diagram for BrassTableCheck:

Inheritance graph
[legend]
Collaboration diagram for BrassTableCheck:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void check (const char *tablename, const std::string &path, int opts, std::ostream &out=std::cout)

Private Member Functions

 BrassTableCheck (const char *tablename_, const std::string &path_, bool readonly, std::ostream &out_)
void block_check (Brass::Cursor *C_, int j, int opts)
int block_usage (const byte *p) const
void report_block (int m, int n, const byte *p) const
 BrassTableCheck::report_block(m, n, p) prints the block at p, block number n, indented by m spaces.
void report_block_full (int m, int n, const byte *p) const
void report_cursor (int N, const Brass::Cursor *C_) const
 XAPIAN_NORETURN (void failure(int n) const)
void print_key (const byte *p, int c, int j) const
void print_tag (const byte *p, int c, int j) const
void print_spaces (int n) const
void print_bytes (int n, const byte *p) const

Private Attributes

std::ostream & out


Detailed Description

Definition at line 33 of file brass_check.h.


Constructor & Destructor Documentation

BrassTableCheck::BrassTableCheck ( const char *  tablename_,
const std::string &  path_,
bool  readonly,
std::ostream &  out_ 
) [inline, private]

Definition at line 38 of file brass_check.h.


Member Function Documentation

void BrassTableCheck::block_check ( Brass::Cursor C_,
int  j,
int  opts 
) [private]

int BrassTableCheck::block_usage ( const byte p  )  const [private]

Definition at line 91 of file brass_check.cc.

References BrassTable::block_size, DIR_END, and TOTAL_FREE.

Referenced by report_block(), and report_block_full().

void BrassTableCheck::check ( const char *  tablename,
const std::string &  path,
int  opts,
std::ostream &  out = std::cout 
) [static]

void BrassTableCheck::print_bytes ( int  n,
const byte p 
) const [private]

Definition at line 38 of file brass_check.cc.

References out.

void BrassTableCheck::print_key ( const byte p,
int  c,
int  j 
) const [private]

void BrassTableCheck::print_spaces ( int  n  )  const [private]

Definition at line 33 of file brass_check.cc.

References out.

Referenced by report_block(), and report_block_full().

void BrassTableCheck::print_tag ( const byte p,
int  c,
int  j 
) const [private]

void BrassTableCheck::report_block ( int  m,
int  n,
const byte p 
) const [private]

BrassTableCheck::report_block(m, n, p) prints the block at p, block number n, indented by m spaces.

Definition at line 101 of file brass_check.cc.

References block_usage(), D2, DIR_END, DIR_START, GET_LEVEL, out, print_key(), print_spaces(), and REVISION.

Referenced by block_check().

void BrassTableCheck::report_block_full ( int  m,
int  n,
const byte p 
) const [private]

Definition at line 73 of file brass_check.cc.

References block_usage(), D2, DIR_END, DIR_START, GET_LEVEL, out, print_key(), print_spaces(), print_tag(), and REVISION.

Referenced by block_check().

void BrassTableCheck::report_cursor ( int  N,
const Brass::Cursor C_ 
) const [private]

Definition at line 255 of file brass_check.cc.

References BrassTable::level, and out.

BrassTableCheck::XAPIAN_NORETURN ( void failure(int n)  const  )  [private]


Member Data Documentation

std::ostream& BrassTableCheck::out [private]


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

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