proxygen
MockTraits::Forwarder Struct Reference

Static Public Member Functions

static void initialize (std::string *ptr)
 
static void cleanup (std::string *ptr)
 
static void onAllocate (std::string *ptr, std::string s)
 
static void onRecycle (std::string *ptr)
 

Detailed Description

Definition at line 324 of file IndexedMemPoolTest.cpp.

Member Function Documentation

static void MockTraits::Forwarder::cleanup ( std::string ptr)
inlinestatic

Definition at line 329 of file IndexedMemPoolTest.cpp.

References string.

329  {
330  using std::string;
331  ptr->~string();
332  }
void * ptr
const char * string
Definition: Conv.cpp:212
static void MockTraits::Forwarder::initialize ( std::string ptr)
inlinestatic

Definition at line 325 of file IndexedMemPoolTest.cpp.

References ptr, and string.

325  {
326  new (ptr) std::string();
327  }
void * ptr
const char * string
Definition: Conv.cpp:212
static void MockTraits::Forwarder::onAllocate ( std::string ptr,
std::string  s 
)
inlinestatic

Definition at line 334 of file IndexedMemPoolTest.cpp.

334  {
335  instance->onAllocate(ptr, s);
336  }
void * ptr
static MockTraits * instance
static set< string > s
static void MockTraits::Forwarder::onRecycle ( std::string ptr)
inlinestatic

Definition at line 338 of file IndexedMemPoolTest.cpp.

References MockTraits::instance.

338  {
339  instance->onRecycle(ptr);
340  }
void * ptr
static MockTraits * instance

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