|
Nvwa
1.1
|
Header file for the `static' memory pool. More...
#include <new>#include <stdexcept>#include <string>#include <vector>#include <assert.h>#include <stddef.h>#include "_nvwa.h"#include "c++11.h"#include "class_level_lock.h"#include "mem_pool_base.h"Go to the source code of this file.
Classes | |
| class | nvwa::static_mem_pool_set |
| Singleton class to maintain a set of existing instantiations of static_mem_pool. More... | |
| class | nvwa::static_mem_pool< _Sz, _Gid > |
| Singleton class template to manage the allocation/deallocation of memory blocks of one specific size. More... | |
Namespaces | |
| nvwa | |
| Namespace of the nvwa project. | |
Macros | |
| #define | DECLARE_STATIC_MEM_POOL(_Cls) |
| Declares the normal (throwing) allocation and deallocation functions. More... | |
| #define | DECLARE_STATIC_MEM_POOL__NOTHROW(_Cls) |
| Declares the nothrow allocation and deallocation functions. More... | |
| #define | DECLARE_STATIC_MEM_POOL_GROUPED(_Cls, _Gid) |
| Declares the normal (throwing) allocation and deallocation functions. More... | |
| #define | DECLARE_STATIC_MEM_POOL_GROUPED__NOTHROW(_Cls, _Gid) |
| Declares the nothrow allocation and deallocation functions. More... | |
Header file for the `static' memory pool.
| #define DECLARE_STATIC_MEM_POOL | ( | _Cls | ) |
Declares the normal (throwing) allocation and deallocation functions.
This macro uses the default group.
| _Cls | class to use the static_mem_pool |
| #define DECLARE_STATIC_MEM_POOL__NOTHROW | ( | _Cls | ) |
Declares the nothrow allocation and deallocation functions.
This macro uses the default group.
| _Cls | class to use the static_mem_pool |
| #define DECLARE_STATIC_MEM_POOL_GROUPED | ( | _Cls, | |
| _Gid | |||
| ) |
Declares the normal (throwing) allocation and deallocation functions.
Users need to specify a group ID.
| _Cls | class to use the static_mem_pool |
| _Gid | group ID (negative to protect multi-threaded access) |
| #define DECLARE_STATIC_MEM_POOL_GROUPED__NOTHROW | ( | _Cls, | |
| _Gid | |||
| ) |
Declares the nothrow allocation and deallocation functions.
Users need to specify a group ID.
| _Cls | class to use the static_mem_pool |
| _Gid | group ID (negative to protect multi-threaded access) |
1.8.13