Tervel  1.0.0
A collection of wait-free containers and algorithms.
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TestObject Class Reference

#include <testObject.h>

Classes

struct  counter
 

Public Types

enum  op_codes : int {
  find = 0, insert, update, remove,
  LENGTH, enqueue = 0, dequeue, faildequeue,
  failenqueue, LENGTH, cas = 0, at,
  popBack, pushBack, size, LENGTH
}
 
enum  op_codes : int {
  find = 0, insert, update, remove,
  LENGTH, enqueue = 0, dequeue, faildequeue,
  failenqueue, LENGTH, cas = 0, at,
  popBack, pushBack, size, LENGTH
}
 
enum  op_codes : int {
  find = 0, insert, update, remove,
  LENGTH, enqueue = 0, dequeue, faildequeue,
  failenqueue, LENGTH, cas = 0, at,
  popBack, pushBack, size, LENGTH
}
 

Public Member Functions

void set_rates ()
 
 TestObject ()
 
 ~TestObject ()
 
void attachThread (int threadID)
 
void detachThread (int threadID)
 
void extra_end_signal ()
 
void init ()
 
void destroy ()
 
void run (int64_t thread_id)
 
std::string toString ()
 
std::string results ()
 
void add_results (int func_call_count[k_num_functions])
 
 ~TestObject ()
 
 TestObject ()
 
void atomic_add (int passed_count, int failed_count)
 
void attachThread (int threadID)
 
void detachThread (int threadID)
 
void extra_end_signal ()
 
void init ()
 
void destroy ()
 
void run (int64_t thread_id)
 
std::string toString ()
 
std::string results ()
 
void set_rates ()
 
 TestObject ()
 
 ~TestObject ()
 
void attachThread (int threadID)
 
void detachThread (int threadID)
 
void extra_end_signal ()
 
void sanity_check ()
 
void init ()
 
void destroy ()
 
void run (int64_t thread_id)
 
std::string toString ()
 
std::string results ()
 
void add_results (int func_call_count[k_num_functions])
 
void set_rates ()
 
 TestObject ()
 
 ~TestObject ()
 
void attachThread (int threadID)
 
void detachThread (int threadID)
 
void extra_end_signal ()
 
void init ()
 
void destroy ()
 
void run (int64_t thread_id)
 
std::string toString ()
 
std::string results ()
 
void add_results (int func_call_count[k_num_functions])
 

Public Attributes

int * func_call_rate_
 
std::string * func_name_
 
std::atomic< int > func_call_count_ [k_num_functions]
 
const int num_threads_
 
const int execution_time_
 
TestClass< Value, Value > * test_class_
 
std::atomic< bool > wait_flag_ true
 
std::atomic< bool > running_ {true}
 
std::atomic< int > ready_count_ {0}
 
const int array_length_
 
const int mcas_size_
 
const int operation_type_
 
TestClasstest_class_
 
std::atomic< uint64_t > passed_count_ {0}
 
std::atomic< uint64_t > failed_count_ {0}
 
std::atomic< void * > * shared_memory_
 
std::atomic< bool > wait_flag_ {true}
 
TestClass< Value > * test_class_
 

Static Public Attributes

static const int k_num_functions = op_codes::LENGTH
 

Member Enumeration Documentation

Enumerator
find 
insert 
update 
remove 
LENGTH 
enqueue 
dequeue 
faildequeue 
failenqueue 
LENGTH 
cas 
at 
popBack 
pushBack 
size 
LENGTH 
Enumerator
find 
insert 
update 
remove 
LENGTH 
enqueue 
dequeue 
faildequeue 
failenqueue 
LENGTH 
cas 
at 
popBack 
pushBack 
size 
LENGTH 
Enumerator
find 
insert 
update 
remove 
LENGTH 
enqueue 
dequeue 
faildequeue 
failenqueue 
LENGTH 
cas 
at 
popBack 
pushBack 
size 
LENGTH 

Constructor & Destructor Documentation

TestObject::TestObject ( )
inline
TestObject::~TestObject ( )
inline
TestObject::~TestObject ( )
inline
TestObject::TestObject ( )
inline
TestObject::TestObject ( )
inline
TestObject::~TestObject ( )
inline
TestObject::TestObject ( )
inline
TestObject::~TestObject ( )
inline

Member Function Documentation

void TestObject::add_results ( int  func_call_count[k_num_functions])
inline
void TestObject::add_results ( int  func_call_count[k_num_functions])
inline
void TestObject::add_results ( int  func_call_count[k_num_functions])
inline
void TestObject::atomic_add ( int  passed_count,
int  failed_count 
)
inline
void TestObject::attachThread ( int  threadID)
inline
void TestObject::attachThread ( int  threadID)
inline
void TestObject::attachThread ( int  threadID)
inline
void TestObject::attachThread ( int  threadID)
inline
void TestObject::destroy ( )
inline
void TestObject::destroy ( )
inline
void TestObject::destroy ( )
inline
void TestObject::destroy ( )
inline
void TestObject::detachThread ( int  threadID)
inline
void TestObject::detachThread ( int  threadID)
inline
void TestObject::detachThread ( int  threadID)
inline
void TestObject::detachThread ( int  threadID)
inline
void TestObject::extra_end_signal ( )
inline
void TestObject::extra_end_signal ( )
inline
void TestObject::extra_end_signal ( )
inline
void TestObject::extra_end_signal ( )
inline
void TestObject::init ( )
inline
void TestObject::init ( )
inline
void TestObject::init ( )
inline
void TestObject::init ( )
inline
std::string TestObject::results ( )
inline
std::string TestObject::results ( )
inline
std::string TestObject::results ( )
inline
std::string TestObject::results ( )
inline
void TestObject::run ( int64_t  thread_id)
inline

Update this when adding a new data structure

void TestObject::run ( int64_t  thread_id)
inline

Update this when adding a new data structure

void TestObject::run ( int64_t  thread_id)
inline

Update this when adding a new data structure

void TestObject::run ( int64_t  thread_id)
inline

Update this when adding a new data structure

void TestObject::sanity_check ( )
void TestObject::set_rates ( )
inline
void TestObject::set_rates ( )
inline
void TestObject::set_rates ( )
inline
std::string TestObject::toString ( )
inline
std::string TestObject::toString ( )
inline
std::string TestObject::toString ( )
inline
std::string TestObject::toString ( )
inline

Member Data Documentation

const int TestObject::array_length_
const int TestObject::execution_time_
std::atomic<uint64_t> TestObject::failed_count_ {0}
std::atomic< int > TestObject::func_call_count_
int * TestObject::func_call_rate_
std::string * TestObject::func_name_
static const int TestObject::k_num_functions = op_codes::LENGTH
static
const int TestObject::mcas_size_
const int TestObject::num_threads_
const int TestObject::operation_type_
std::atomic<uint64_t> TestObject::passed_count_ {0}
std::atomic< int > TestObject::ready_count_ {0}
std::atomic< bool > TestObject::running_ {true}
std::atomic<void *>* TestObject::shared_memory_
TestClass* TestObject::test_class_
TestClass< Value > * TestObject::test_class_
TestClass<Value>* TestObject::test_class_
std::atomic<bool> wait_flag_ TestObject::true
std::atomic< bool > TestObject::wait_flag_ {true}

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