proxygen
TestObject Class Reference

Public Member Functions

 TestObject (int value_, std::atomic< int > &counter_)
 
 ~TestObject ()
 
 TestObject (size_t id__, const std::shared_ptr< void > &ptr)
 
size_t id ()
 

Public Attributes

int value
 
std::atomic< int > & counter
 

Private Attributes

size_t id_
 
std::shared_ptr< void > ptr_
 

Detailed Description

Definition at line 43 of file ReadMostlySharedPtrTest.cpp.

Constructor & Destructor Documentation

TestObject::TestObject ( int  value_,
std::atomic< int > &  counter_ 
)
inline

Definition at line 47 of file ReadMostlySharedPtrTest.cpp.

References counter.

48  : value(value_), counter(counter_) {
49  ++counter;
50  }
std::atomic< int > & counter
folly::detail::CompressionCounter * counter_
TestObject::~TestObject ( )
inline

Definition at line 52 of file ReadMostlySharedPtrTest.cpp.

References counter.

52  {
53  assert(counter.load() > 0);
54  --counter;
55  }
std::atomic< int > & counter
TestObject::TestObject ( size_t  id__,
const std::shared_ptr< void > &  ptr 
)
inline

Definition at line 178 of file AtomicLinkedListTest.cpp.

179  : id_(id__), ptr_(ptr) {}
void * ptr
std::shared_ptr< void > ptr_

Member Function Documentation

size_t TestObject::id ( )
inline

Definition at line 181 of file AtomicLinkedListTest.cpp.

References TestIntrusiveObject::id_.

181  {
182  return id_;
183  }

Member Data Documentation

std::atomic<int>& TestObject::counter

Definition at line 45 of file ReadMostlySharedPtrTest.cpp.

size_t TestObject::id_
private

Definition at line 186 of file AtomicLinkedListTest.cpp.

std::shared_ptr<void> TestObject::ptr_
private

Definition at line 187 of file AtomicLinkedListTest.cpp.

int TestObject::value

Definition at line 44 of file ReadMostlySharedPtrTest.cpp.


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