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

#include <memtable.h>

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

Classes

struct  KeyComparator
 

Public Member Functions

 MemTable (const InternalKeyComparator &comparator)
 
void Ref ()
 
void Unref ()
 
size_t ApproximateMemoryUsage ()
 
IteratorNewIterator ()
 
void Add (SequenceNumber seq, ValueType type, const Slice &key, const Slice &value)
 
bool Get (const LookupKey &key, std::string *value, Status *s)
 

Private Types

typedef SkipList< const char
*, KeyComparator
Table
 

Private Member Functions

 ~MemTable ()
 
 MemTable (const MemTable &)
 
void operator= (const MemTable &)
 

Private Attributes

KeyComparator comparator_
 
int refs_
 
Arena arena_
 
Table table_
 

Friends

class MemTableIterator
 
class MemTableBackwardIterator
 

Detailed Description

Definition at line 20 of file memtable.h.

Member Typedef Documentation

typedef SkipList<const char*, KeyComparator> leveldb::MemTable::Table
private

Definition at line 77 of file memtable.h.

Constructor & Destructor Documentation

leveldb::MemTable::MemTable ( const InternalKeyComparator comparator)
explicit

Definition at line 21 of file memtable.cc.

leveldb::MemTable::~MemTable ( )
private

Definition at line 27 of file memtable.cc.

leveldb::MemTable::MemTable ( const MemTable )
private

Member Function Documentation

void leveldb::MemTable::Add ( SequenceNumber  seq,
ValueType  type,
const Slice key,
const Slice value 
)

Definition at line 82 of file memtable.cc.

size_t leveldb::MemTable::ApproximateMemoryUsage ( )

Definition at line 31 of file memtable.cc.

bool leveldb::MemTable::Get ( const LookupKey key,
std::string *  value,
Status s 
)

Definition at line 108 of file memtable.cc.

Iterator * leveldb::MemTable::NewIterator ( )

Definition at line 78 of file memtable.cc.

void leveldb::MemTable::operator= ( const MemTable )
private
void leveldb::MemTable::Ref ( )
inline

Definition at line 27 of file memtable.h.

void leveldb::MemTable::Unref ( )
inline

Definition at line 30 of file memtable.h.

Friends And Related Function Documentation

friend class MemTableBackwardIterator
friend

Definition at line 75 of file memtable.h.

friend class MemTableIterator
friend

Definition at line 74 of file memtable.h.

Member Data Documentation

Arena leveldb::MemTable::arena_
private

Definition at line 81 of file memtable.h.

KeyComparator leveldb::MemTable::comparator_
private

Definition at line 79 of file memtable.h.

int leveldb::MemTable::refs_
private

Definition at line 80 of file memtable.h.

Table leveldb::MemTable::table_
private

Definition at line 82 of file memtable.h.


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