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

#include <version_edit.h>

Public Member Functions

 VersionEdit ()
 
 ~VersionEdit ()
 
void Clear ()
 
void SetComparatorName (const Slice &name)
 
void SetLogNumber (uint64_t num)
 
void SetPrevLogNumber (uint64_t num)
 
void SetNextFile (uint64_t num)
 
void SetLastSequence (SequenceNumber seq)
 
void SetCompactPointer (int level, const InternalKey &key)
 
void AddFile (int level, uint64_t file, uint64_t file_size, const InternalKey &smallest, const InternalKey &largest)
 
void DeleteFile (int level, uint64_t file)
 
void EncodeTo (std::string *dst) const
 
Status DecodeFrom (const Slice &src)
 
std::string DebugString () const
 

Private Types

typedef std::set< std::pair
< int, uint64_t > > 
DeletedFileSet
 

Private Attributes

std::string comparator_
 
uint64_t log_number_
 
uint64_t prev_log_number_
 
uint64_t next_file_number_
 
SequenceNumber last_sequence_
 
bool has_comparator_
 
bool has_log_number_
 
bool has_prev_log_number_
 
bool has_next_file_number_
 
bool has_last_sequence_
 
std::vector< std::pair< int,
InternalKey > > 
compact_pointers_
 
DeletedFileSet deleted_files_
 
std::vector< std::pair< int,
FileMetaData > > 
new_files_
 

Friends

class VersionSet
 

Detailed Description

Definition at line 28 of file version_edit.h.

Member Typedef Documentation

typedef std::set< std::pair<int, uint64_t> > leveldb::VersionEdit::DeletedFileSet
private

Definition at line 87 of file version_edit.h.

Constructor & Destructor Documentation

leveldb::VersionEdit::VersionEdit ( )
inline

Definition at line 30 of file version_edit.h.

leveldb::VersionEdit::~VersionEdit ( )
inline

Definition at line 31 of file version_edit.h.

Member Function Documentation

void leveldb::VersionEdit::AddFile ( int  level,
uint64_t  file,
uint64_t  file_size,
const InternalKey smallest,
const InternalKey largest 
)
inline

Definition at line 62 of file version_edit.h.

void leveldb::VersionEdit::Clear ( )

Definition at line 26 of file version_edit.cc.

std::string leveldb::VersionEdit::DebugString ( ) const

Definition at line 212 of file version_edit.cc.

Status leveldb::VersionEdit::DecodeFrom ( const Slice src)

Definition at line 109 of file version_edit.cc.

void leveldb::VersionEdit::DeleteFile ( int  level,
uint64_t  file 
)
inline

Definition at line 75 of file version_edit.h.

void leveldb::VersionEdit::EncodeTo ( std::string *  dst) const

Definition at line 41 of file version_edit.cc.

void leveldb::VersionEdit::SetCompactPointer ( int  level,
const InternalKey key 
)
inline

Definition at line 55 of file version_edit.h.

void leveldb::VersionEdit::SetComparatorName ( const Slice name)
inline

Definition at line 35 of file version_edit.h.

void leveldb::VersionEdit::SetLastSequence ( SequenceNumber  seq)
inline

Definition at line 51 of file version_edit.h.

void leveldb::VersionEdit::SetLogNumber ( uint64_t  num)
inline

Definition at line 39 of file version_edit.h.

void leveldb::VersionEdit::SetNextFile ( uint64_t  num)
inline

Definition at line 47 of file version_edit.h.

void leveldb::VersionEdit::SetPrevLogNumber ( uint64_t  num)
inline

Definition at line 43 of file version_edit.h.

Friends And Related Function Documentation

friend class VersionSet
friend

Definition at line 85 of file version_edit.h.

Member Data Documentation

std::vector< std::pair<int, InternalKey> > leveldb::VersionEdit::compact_pointers_
private

Definition at line 100 of file version_edit.h.

std::string leveldb::VersionEdit::comparator_
private

Definition at line 89 of file version_edit.h.

DeletedFileSet leveldb::VersionEdit::deleted_files_
private

Definition at line 101 of file version_edit.h.

bool leveldb::VersionEdit::has_comparator_
private

Definition at line 94 of file version_edit.h.

bool leveldb::VersionEdit::has_last_sequence_
private

Definition at line 98 of file version_edit.h.

bool leveldb::VersionEdit::has_log_number_
private

Definition at line 95 of file version_edit.h.

bool leveldb::VersionEdit::has_next_file_number_
private

Definition at line 97 of file version_edit.h.

bool leveldb::VersionEdit::has_prev_log_number_
private

Definition at line 96 of file version_edit.h.

SequenceNumber leveldb::VersionEdit::last_sequence_
private

Definition at line 93 of file version_edit.h.

uint64_t leveldb::VersionEdit::log_number_
private

Definition at line 90 of file version_edit.h.

std::vector< std::pair<int, FileMetaData> > leveldb::VersionEdit::new_files_
private

Definition at line 102 of file version_edit.h.

uint64_t leveldb::VersionEdit::next_file_number_
private

Definition at line 92 of file version_edit.h.

uint64_t leveldb::VersionEdit::prev_log_number_
private

Definition at line 91 of file version_edit.h.


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