Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
leveldb::FilterBlockBuilder Class Reference

#include <filter_block.h>

Collaboration diagram for leveldb::FilterBlockBuilder:
Collaboration graph
[legend]

Public Member Functions

 FilterBlockBuilder (const FilterPolicy *)
 
void StartBlock (uint64_t block_offset)
 
void AddKey (const Slice &key)
 
Slice Finish ()
 

Private Member Functions

void GenerateFilter ()
 
 FilterBlockBuilder (const FilterBlockBuilder &)
 
void operator= (const FilterBlockBuilder &)
 

Private Attributes

const FilterPolicypolicy_
 
std::string keys_
 
std::vector< size_t > start_
 
std::string result_
 
std::vector< Slicetmp_keys_
 
std::vector< uint32_tfilter_offsets_
 

Detailed Description

Definition at line 29 of file filter_block.h.

Constructor & Destructor Documentation

leveldb::FilterBlockBuilder::FilterBlockBuilder ( const FilterPolicy policy)
explicit

Definition at line 18 of file filter_block.cc.

leveldb::FilterBlockBuilder::FilterBlockBuilder ( const FilterBlockBuilder )
private

Member Function Documentation

void leveldb::FilterBlockBuilder::AddKey ( const Slice key)

Definition at line 30 of file filter_block.cc.

Slice leveldb::FilterBlockBuilder::Finish ( )

Definition at line 36 of file filter_block.cc.

void leveldb::FilterBlockBuilder::GenerateFilter ( )
private

Definition at line 52 of file filter_block.cc.

void leveldb::FilterBlockBuilder::operator= ( const FilterBlockBuilder )
private
void leveldb::FilterBlockBuilder::StartBlock ( uint64_t  block_offset)

Definition at line 22 of file filter_block.cc.

Member Data Documentation

std::vector<uint32_t> leveldb::FilterBlockBuilder::filter_offsets_
private

Definition at line 45 of file filter_block.h.

std::string leveldb::FilterBlockBuilder::keys_
private

Definition at line 41 of file filter_block.h.

const FilterPolicy* leveldb::FilterBlockBuilder::policy_
private

Definition at line 40 of file filter_block.h.

std::string leveldb::FilterBlockBuilder::result_
private

Definition at line 43 of file filter_block.h.

std::vector<size_t> leveldb::FilterBlockBuilder::start_
private

Definition at line 42 of file filter_block.h.

std::vector<Slice> leveldb::FilterBlockBuilder::tmp_keys_
private

Definition at line 44 of file filter_block.h.


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