| 
 mxnet
    
 | 
Object pool for fast allocation and deallocation. More...
#include <object_pool.h>

Public Member Functions | |
| ~ObjectPool () | |
| Destructor.  More... | |
| template<typename... Args> | |
| T * | New (Args &&...args) | 
| Create new object.  More... | |
| void | Delete (T *ptr) | 
| Delete an existing object.  More... | |
Static Public Member Functions | |
| static ObjectPool * | Get () | 
| Get singleton instance of pool.  More... | |
| static std::shared_ptr< ObjectPool > | _GetSharedRef () | 
| Get a shared ptr of the singleton instance of pool.  More... | |
Object pool for fast allocation and deallocation.
| mxnet::common::ObjectPool< T >::~ObjectPool | ( | ) | 
Destructor.
  | 
static | 
Get a shared ptr of the singleton instance of pool.
| void mxnet::common::ObjectPool< T >::Delete | ( | T * | ptr | ) | 
Delete an existing object.
| ptr | The pointer to delete. | 
Make sure the pointer to delete is allocated from this pool.
  | 
static | 
Get singleton instance of pool.
| T * mxnet::common::ObjectPool< T >::New | ( | Args &&... | args | ) | 
Create new object.
 1.8.11