proxygen
NonTrivialStruct Struct Reference

Public Member Functions

 NonTrivialStruct ()
 
 NonTrivialStruct (std::unique_ptr< std::string > &&arg1, size_t arg2)
 
 ~NonTrivialStruct ()
 

Public Attributes

size_t elem_
 

Static Public Attributes

static FOLLY_TLS size_t count
 

Detailed Description

Definition at line 161 of file IndexedMemPoolTest.cpp.

Constructor & Destructor Documentation

NonTrivialStruct::NonTrivialStruct ( )
inline

Definition at line 166 of file IndexedMemPoolTest.cpp.

References count.

166  {
167  elem_ = 0;
168  ++count;
169  }
static FOLLY_TLS size_t count
NonTrivialStruct::NonTrivialStruct ( std::unique_ptr< std::string > &&  arg1,
size_t  arg2 
)
inline

Definition at line 171 of file IndexedMemPoolTest.cpp.

References count.

171  {
172  elem_ = arg1->length() + arg2;
173  ++count;
174  }
static FOLLY_TLS size_t count
NonTrivialStruct::~NonTrivialStruct ( )
inline

Definition at line 176 of file IndexedMemPoolTest.cpp.

References count, and count.

176  {
177  --count;
178  }
static FOLLY_TLS size_t count

Member Data Documentation

FOLLY_TLS size_t NonTrivialStruct::count
static

Definition at line 162 of file IndexedMemPoolTest.cpp.

Referenced by TEST(), and ~NonTrivialStruct().

size_t NonTrivialStruct::elem_

Definition at line 164 of file IndexedMemPoolTest.cpp.


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