Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
leveldb::ConcurrentTest Class Reference
Collaboration diagram for leveldb::ConcurrentTest:
Collaboration graph
[legend]

Classes

struct  State
 

Public Member Functions

 ConcurrentTest ()
 
void WriteStep (Random *rnd)
 
void ReadStep (Random *rnd)
 

Static Private Member Functions

static uint64_t key (Key key)
 
static uint64_t gen (Key key)
 
static uint64_t hash (Key key)
 
static uint64_t HashNumbers (uint64_t k, uint64_t g)
 
static Key MakeKey (uint64_t k, uint64_t g)
 
static bool IsValidKey (Key k)
 
static Key RandomTarget (Random *rnd)
 

Private Attributes

State current_
 
Arena arena_
 
SkipList< Key, Comparatorlist_
 

Static Private Attributes

static const uint32_t K = 4
 

Detailed Description

Definition at line 149 of file skiplist_test.cc.

Constructor & Destructor Documentation

leveldb::ConcurrentTest::ConcurrentTest ( )
inline

Definition at line 214 of file skiplist_test.cc.

Member Function Documentation

static uint64_t leveldb::ConcurrentTest::gen ( Key  key)
inlinestaticprivate

Definition at line 154 of file skiplist_test.cc.

static uint64_t leveldb::ConcurrentTest::hash ( Key  key)
inlinestaticprivate

Definition at line 155 of file skiplist_test.cc.

static uint64_t leveldb::ConcurrentTest::HashNumbers ( uint64_t  k,
uint64_t  g 
)
inlinestaticprivate

Definition at line 157 of file skiplist_test.cc.

static bool leveldb::ConcurrentTest::IsValidKey ( Key  k)
inlinestaticprivate

Definition at line 169 of file skiplist_test.cc.

static uint64_t leveldb::ConcurrentTest::key ( Key  key)
inlinestaticprivate

Definition at line 153 of file skiplist_test.cc.

static Key leveldb::ConcurrentTest::MakeKey ( uint64_t  k,
uint64_t  g 
)
inlinestaticprivate

Definition at line 162 of file skiplist_test.cc.

static Key leveldb::ConcurrentTest::RandomTarget ( Random rnd)
inlinestaticprivate

Definition at line 173 of file skiplist_test.cc.

void leveldb::ConcurrentTest::ReadStep ( Random rnd)
inline

Definition at line 225 of file skiplist_test.cc.

void leveldb::ConcurrentTest::WriteStep ( Random rnd)
inline

Definition at line 217 of file skiplist_test.cc.

Member Data Documentation

Arena leveldb::ConcurrentTest::arena_
private

Definition at line 207 of file skiplist_test.cc.

State leveldb::ConcurrentTest::current_
private

Definition at line 205 of file skiplist_test.cc.

const uint32_t leveldb::ConcurrentTest::K = 4
staticprivate

Definition at line 151 of file skiplist_test.cc.

SkipList<Key, Comparator> leveldb::ConcurrentTest::list_
private

Definition at line 211 of file skiplist_test.cc.


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