RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::ManagedMemoryBlock< R > Class Template Reference

提供内存块的自动释放方法 More...

Inheritance diagram for System::ManagedMemoryBlock< R >:
System::Object< R >

Public Member Functions

 ManagedMemoryBlock (intptr_t count)
 
 ManagedMemoryBlock (uintptr_t count)
 
 ManagedMemoryBlock (class ManagedMemoryBlock &src)
 
ManagedMemoryBlockoperator= (class ManagedMemoryBlock &src)
 
template<typename T = void>
T * ToAny ()
 执行指针类型转换 More...
 
ManagedMemoryBlockoperator= (R *ptr)
 重置内存指针, 并释放之前的内存块 More...
 
void Finalize ()
 回收内存 More...
 
- Public Member Functions inherited from System::Object< R >
 Object (R *ptr)
 
 operator R * ()
 获取实例对象托管的指针 More...
 
R * operator-> () const
 访问实例对象托管的指针 More...
 
R & GetInstance ()
 获取实例对象引用 More...
 
R * SuppressFinalize ()
 Requests that the system not call the finalizer for the specified object More...
 
bool IsNull ()
 判断关联的指针是否为 nullptr More...
 
bool IsNotNull ()
 判断关联的指针是否不为 nullptr More...
 

Static Public Member Functions

static R * construct (intptr_t count)
 
static void destroy (const R *obj)
 

Public Attributes

 RLIB_DECLARE_DYNCREATE
 
- Public Attributes inherited from System::Object< R >
R * ObjectPtr
 

Detailed Description

template<typename R = unsigned char>
class System::ManagedMemoryBlock< R >

提供内存块的自动释放方法

Member Function Documentation

template<typename R = unsigned char>
void System::ManagedMemoryBlock< R >::Finalize ( )
inline

回收内存

template<typename R = unsigned char>
ManagedMemoryBlock& System::ManagedMemoryBlock< R >::operator= ( R *  ptr)
inline

重置内存指针, 并释放之前的内存块

template<typename R = unsigned char>
template<typename T = void>
T* System::ManagedMemoryBlock< R >::ToAny ( )
inline

执行指针类型转换


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