BtreeCheck Class Reference

#include <flint_check.h>

Inheritance diagram for BtreeCheck:

Inheritance graph
[legend]
Collaboration diagram for BtreeCheck:

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

 BtreeCheck (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
 BtreeCheck::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 flint_check.h.


Constructor & Destructor Documentation

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

Definition at line 38 of file flint_check.h.


Member Function Documentation

void BtreeCheck::block_check ( Cursor_ C_,
int  j,
int  opts 
) [private]

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

Definition at line 97 of file flint_check.cc.

References FlintTable::block_size, DIR_END, and TOTAL_FREE.

Referenced by report_block(), and report_block_full().

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

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

Definition at line 44 of file flint_check.cc.

References out.

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

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

Definition at line 39 of file flint_check.cc.

References out.

Referenced by report_block(), and report_block_full().

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

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

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

Definition at line 107 of file flint_check.cc.

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

Referenced by block_check().

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

Definition at line 79 of file flint_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 BtreeCheck::report_cursor ( int  N,
const Cursor_ C_ 
) const [private]

Definition at line 261 of file flint_check.cc.

References FlintTable::level, and out.

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


Member Data Documentation

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


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

Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.