Chinaunix首页 | 论坛 | 博客
  • 博客访问: 183533
  • 博文数量: 60
  • 博客积分: 1597
  • 博客等级: 上尉
  • 技术积分: 461
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-20 13:24
文章分类

全部博文(60)

文章存档

2017年(15)

2016年(6)

2015年(37)

2008年(2)

分类: C/C++

2015-09-11 17:51:32

Reference Counting AutoPtr,
Poco::AutoPtr<> 引用计数的指针指针模板,可以用于所有支持引用计数的类
可以用于引用计数的类必须满足3个要求
    维护引用计数,创建类时初始化=1
    有 void duplicate() 方法 增加引用计数
    有 void release() 方法 减少计数并在计数值为0时 delete this

RefCountedObject and AutoReleasePool
SharedPtr
Buffers
Dynamic Factory and Instantiator
Memory Pools
Singletons
阅读(899) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~