tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BoostingSkip Class Referenceabstract

#include <boostingskip.h>

Collaboration diagram for BoostingSkip:

Classes

struct  Operation
 

Public Types

enum  ReturnCode { OK = 0, LOCK_FAIL, OP_FAIL }
 

Public Member Functions

 BoostingSkip ()
 
 ~BoostingSkip ()
 
void Init ()
 
void Uninit ()
 
ReturnCode Insert (uint32_t key)
 
ReturnCode Delete (uint32_t key)
 
ReturnCode Find (uint32_t key)
 
void OnAbort (ReturnCode ret)
 
void OnCommit ()
 
void Print ()
 

Private Types

enum  OpType { FIND = 0, INSERT, DELETE }
 
typedef std::vector< OperationLogType
 

Private Member Functions

 ASSERT_CODE (uint32_t g_count=0;uint32_t g_count_ins=0;uint32_t g_count_del=0;uint32_t g_count_fnd=0;) uint32_t g_count_commit=0
 

Private Attributes

boost_skipm_list
 
LockKey m_lock
 
uint32_t g_count_abort = 0
 
uint32_t g_count_fake_abort = 0
 

Static Private Attributes

static __thread LogTypem_log
 

Member Typedef Documentation

typedef std::vector<Operation> BoostingSkip::LogType
private

Member Enumeration Documentation

enum BoostingSkip::OpType
private
Enumerator
FIND 
INSERT 
DELETE 
Enumerator
OK 
LOCK_FAIL 
OP_FAIL 

Constructor & Destructor Documentation

BoostingSkip::BoostingSkip ( )

Here is the call graph for this function:

BoostingSkip::~BoostingSkip ( )

Here is the call graph for this function:

Member Function Documentation

BoostingSkip::ASSERT_CODE ( uint32_t  g_count = 0;uint32_t g_count_ins=0;uint32_t g_count_del=0;uint32_t g_count_fnd=0;)
privatepure virtual

Here is the caller graph for this function:

BoostingSkip::ReturnCode BoostingSkip::Delete ( uint32_t  key)

Here is the call graph for this function:

BoostingSkip::ReturnCode BoostingSkip::Find ( uint32_t  key)

Here is the call graph for this function:

void BoostingSkip::Init ( )

Here is the call graph for this function:

BoostingSkip::ReturnCode BoostingSkip::Insert ( uint32_t  key)

Here is the call graph for this function:

void BoostingSkip::OnAbort ( ReturnCode  ret)

Here is the call graph for this function:

void BoostingSkip::OnCommit ( )

Here is the call graph for this function:

void BoostingSkip::Print ( )

Here is the call graph for this function:

void BoostingSkip::Uninit ( )

Here is the call graph for this function:

Member Data Documentation

uint32_t BoostingSkip::g_count_abort = 0
private
uint32_t BoostingSkip::g_count_fake_abort = 0
private
boost_skip* BoostingSkip::m_list
private
LockKey BoostingSkip::m_lock
private
__thread BoostingSkip::LogType * BoostingSkip::m_log
staticprivate

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