From cb61e4d6f10458b1bd17c29ac44ca0d16552eaf6 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 23 Aug 2019 15:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A=E6=98=8E?= =?UTF-8?q?=E7=A1=AE=E4=BD=9C=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/type/ResManage.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/hgl/type/ResManage.h b/inc/hgl/type/ResManage.h index 081375e..e5d793a 100644 --- a/inc/hgl/type/ResManage.h +++ b/inc/hgl/type/ResManage.h @@ -38,13 +38,13 @@ namespace hgl virtual ~ResManage(); virtual void Clear(); ///<清除所有数据 - virtual void ClearFree(); ///<清除所有没有用到的数据 + virtual void ClearFree(); ///<清除所有引用计数为0的数据 const int GetCount()const{return items.GetCount();} ///<取得数据数量 virtual bool Add(const F &,T *); ///<添加一个数据 - virtual T * Find(const F &); ///<查找一个数据 - virtual T * Get(const F &); ///<取得一个数据 + virtual T * Find(const F &); ///<查找一个数据(不增加引用计数) + virtual T * Get(const F &); ///<取得一个数据(增加引用计数) virtual bool ValueExist(T *); ///<确认这个数据是否存在 virtual bool GetKeyByValue(T *,F *,uint *,bool inc_ref_count=false); ///<取得一个数据的Key和引用次数