xapian-core  2.0.0
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
HoneyFreeListChecker Class Reference

#include <honey_freelist.h>

Public Member Functions

 HoneyFreeListChecker (const HoneyFreeList &fl)
 
 ~HoneyFreeListChecker ()
 
bool mark_used (uint4 n)
 
uint4 count_set_bits (uint4 *p_first_bad_blk) const
 Count how many bits are still set. More...
 

Private Types

typedef unsigned long elt_type
 

Private Member Functions

 HoneyFreeListChecker (const HoneyFreeListChecker &)
 
HoneyFreeListCheckeroperator= (const HoneyFreeListChecker &)
 

Private Attributes

uint4 bitmap_size
 
elt_typebitmap
 

Detailed Description

Definition at line 146 of file honey_freelist.h.

Member Typedef Documentation

◆ elt_type

typedef unsigned long HoneyFreeListChecker::elt_type
private

Definition at line 148 of file honey_freelist.h.

Constructor & Destructor Documentation

◆ HoneyFreeListChecker() [1/2]

HoneyFreeListChecker::HoneyFreeListChecker ( const HoneyFreeListChecker )
private

◆ HoneyFreeListChecker() [2/2]

HoneyFreeListChecker::HoneyFreeListChecker ( const HoneyFreeList fl)
explicit

Definition at line 270 of file honey_freelist.cc.

References HoneyFreeList::get_first_unused_block().

◆ ~HoneyFreeListChecker()

HoneyFreeListChecker::~HoneyFreeListChecker ( )
inline

Definition at line 161 of file honey_freelist.h.

References bitmap.

Member Function Documentation

◆ count_set_bits()

uint4 HoneyFreeListChecker::count_set_bits ( uint4 p_first_bad_blk) const

Count how many bits are still set.

Definition at line 288 of file honey_freelist.cc.

References add_popcount(), and usual.

◆ mark_used()

bool HoneyFreeListChecker::mark_used ( uint4  n)
inline

Definition at line 165 of file honey_freelist.h.

References bitmap, bitmap_size, and rare.

◆ operator=()

HoneyFreeListChecker& HoneyFreeListChecker::operator= ( const HoneyFreeListChecker )
private

Member Data Documentation

◆ bitmap

elt_type* HoneyFreeListChecker::bitmap
private

Definition at line 152 of file honey_freelist.h.

Referenced by mark_used(), and ~HoneyFreeListChecker().

◆ bitmap_size

uint4 HoneyFreeListChecker::bitmap_size
private

Definition at line 150 of file honey_freelist.h.

Referenced by mark_used().


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