ChertTableCheck Class Reference

#include <chert_check.h>

Inheritance diagram for ChertTableCheck:

Inheritance graph
[legend]
Collaboration diagram for ChertTableCheck:

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

 ChertTableCheck (const char *tablename_, const std::string &path_, bool readonly, std::ostream &out_)
void block_check (Cursor *C_, int j, int opts)
int block_usage (const byte *p) const
void report_block (int m, int n, const byte *p) const
 ChertTableCheck::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 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 chert_check.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file chert_check.h.


Member Function Documentation

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

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

Definition at line 90 of file chert_check.cc.

References ChertTable::block_size, DIR_END, and TOTAL_FREE.

Referenced by report_block(), and report_block_full().

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

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

Definition at line 37 of file chert_check.cc.

References out.

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

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

Definition at line 32 of file chert_check.cc.

References out.

Referenced by report_block(), and report_block_full().

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

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

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

Definition at line 100 of file chert_check.cc.

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

Referenced by block_check().

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

Definition at line 72 of file chert_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 ChertTableCheck::report_cursor ( int  N,
const Cursor C_ 
) const [private]

Definition at line 254 of file chert_check.cc.

References ChertTable::level, and out.

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


Member Data Documentation

std::ostream& ChertTableCheck::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.