dl
dl::Memory::ReuseCheck< T > 模板类 参考

new内存复用(带检查) 更多...

#include <dl_memory_reuse.h>

Public 成员函数

 ReuseCheck ()
 
template<typename... Args>
T * New (Args &&...args)
 
bool Delete (T *p)
 
bool Find (T *p)
 
void Clear2Num (size_t num)
 
void Reserve (size_t n)
 
void SetCountMax (int n)
 
size_t GetCountMax ()
 
size_t GetCount ()
 
size_t GetCountFree ()
 
 ~ReuseCheck ()
 

详细描述

template<typename T>
class dl::Memory::ReuseCheck< T >

new内存复用(带检查)

在文件 dl_memory_reuse.h 第 60 行定义.

构造及析构函数说明

◆ ReuseCheck()

template<typename T>
dl::Memory::ReuseCheck< T >::ReuseCheck ( )
inline

在文件 dl_memory_reuse.h 第 63 行定义.

◆ ~ReuseCheck()

template<typename T>
dl::Memory::ReuseCheck< T >::~ReuseCheck ( )
inline

在文件 dl_memory_reuse.h 第 158 行定义.

成员函数说明

◆ Clear2Num()

template<typename T>
void dl::Memory::ReuseCheck< T >::Clear2Num ( size_t num)
inline

在文件 dl_memory_reuse.h 第 121 行定义.

◆ Delete()

template<typename T>
bool dl::Memory::ReuseCheck< T >::Delete ( T * p)
inline

在文件 dl_memory_reuse.h 第 94 行定义.

◆ Find()

template<typename T>
bool dl::Memory::ReuseCheck< T >::Find ( T * p)
inline

在文件 dl_memory_reuse.h 第 115 行定义.

◆ GetCount()

template<typename T>
size_t dl::Memory::ReuseCheck< T >::GetCount ( )
inline

在文件 dl_memory_reuse.h 第 148 行定义.

◆ GetCountFree()

template<typename T>
size_t dl::Memory::ReuseCheck< T >::GetCountFree ( )
inline

在文件 dl_memory_reuse.h 第 153 行定义.

◆ GetCountMax()

template<typename T>
size_t dl::Memory::ReuseCheck< T >::GetCountMax ( )
inline

在文件 dl_memory_reuse.h 第 143 行定义.

◆ New()

template<typename T>
template<typename... Args>
T * dl::Memory::ReuseCheck< T >::New ( Args &&... args)
inline

在文件 dl_memory_reuse.h 第 67 行定义.

◆ Reserve()

template<typename T>
void dl::Memory::ReuseCheck< T >::Reserve ( size_t n)
inline

在文件 dl_memory_reuse.h 第 133 行定义.

◆ SetCountMax()

template<typename T>
void dl::Memory::ReuseCheck< T >::SetCountMax ( int n)
inline

在文件 dl_memory_reuse.h 第 138 行定义.


该类的文档由以下文件生成: