摘要
针对传统指针模型所带来的内存使用上的不便性,设计了新的引用计数指针模型,并给出了引用使用规则.设计了通用的指针模板类,最后给出了测试和结果分析,证明此方法可以解决内存的自动管理问题.
For inconvenience of memory management engendered by traditional pointer, designing a new referencing pointer model the using rule of reference is given. A generic template pointer class and its usage method are offered on the basis of not modifying running compiler and standard library, At last the testing and result analysis is made. It is proved that it can solve the problem of memory automatic management.
出处
《华北水利水电学院学报》
2006年第2期73-75,共3页
North China Institute of Water Conservancy and Hydroelectric Power
基金
河南省科技攻关项目(0524220064)
关键词
引用计数规则
模板类
自动内存管理
referencing rule
template class
memory automatic management
作者简介
朱国仲(1978-),男,河南商水人,华北水利水电学院信工系讲师,主要从事图形图像处理、科学可视化及面向对象技术方面的研究.