Bitcoin
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
leveldb::ConcurrentTest Class Reference

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
 

Constructor & Destructor Documentation

◆ ConcurrentTest()

leveldb::ConcurrentTest::ConcurrentTest ( )
inline

Member Function Documentation

◆ gen()

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

◆ hash()

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

◆ HashNumbers()

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

◆ IsValidKey()

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

◆ key()

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

◆ MakeKey()

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

◆ RandomTarget()

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

◆ ReadStep()

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

◆ WriteStep()

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

Member Data Documentation

◆ arena_

Arena leveldb::ConcurrentTest::arena_
private

◆ current_

State leveldb::ConcurrentTest::current_
private

◆ K

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

◆ list_

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

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