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::BlockBuilder Class Reference

#include <block_builder.h>

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

Public Member Functions

 BlockBuilder (const Options *options)
 
void Reset ()
 
void Add (const Slice &key, const Slice &value)
 
Slice Finish ()
 
size_t CurrentSizeEstimate () const
 
bool empty () const
 

Private Member Functions

 BlockBuilder (const BlockBuilder &)
 
void operator= (const BlockBuilder &)
 

Private Attributes

const Optionsoptions_
 
std::string buffer_
 
std::vector< uint32_trestarts_
 
int counter_
 
bool finished_
 
std::string last_key_
 

Detailed Description

Definition at line 17 of file block_builder.h.

Constructor & Destructor Documentation

leveldb::BlockBuilder::BlockBuilder ( const Options options)
explicit

Definition at line 39 of file block_builder.cc.

leveldb::BlockBuilder::BlockBuilder ( const BlockBuilder )
private

Member Function Documentation

void leveldb::BlockBuilder::Add ( const Slice key,
const Slice value 
)

Definition at line 73 of file block_builder.cc.

size_t leveldb::BlockBuilder::CurrentSizeEstimate ( ) const

Definition at line 57 of file block_builder.cc.

bool leveldb::BlockBuilder::empty ( ) const
inline

Definition at line 38 of file block_builder.h.

Slice leveldb::BlockBuilder::Finish ( )

Definition at line 63 of file block_builder.cc.

void leveldb::BlockBuilder::operator= ( const BlockBuilder )
private
void leveldb::BlockBuilder::Reset ( )

Definition at line 48 of file block_builder.cc.

Member Data Documentation

std::string leveldb::BlockBuilder::buffer_
private

Definition at line 44 of file block_builder.h.

int leveldb::BlockBuilder::counter_
private

Definition at line 46 of file block_builder.h.

bool leveldb::BlockBuilder::finished_
private

Definition at line 47 of file block_builder.h.

std::string leveldb::BlockBuilder::last_key_
private

Definition at line 48 of file block_builder.h.

const Options* leveldb::BlockBuilder::options_
private

Definition at line 43 of file block_builder.h.

std::vector<uint32_t> leveldb::BlockBuilder::restarts_
private

Definition at line 45 of file block_builder.h.


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