diff --git a/inc/hgl/type/Collection.h b/inc/hgl/type/Collection.h index c208c41..3162ec7 100644 --- a/inc/hgl/type/Collection.h +++ b/inc/hgl/type/Collection.h @@ -18,6 +18,12 @@ namespace hgl size_t size; public: + + CheckElementMemcmp(const size_t s) + { + value=nullptr; + size=s; + } CheckElementMemcmp(const void *v,const size_t s) { @@ -132,7 +138,7 @@ namespace hgl } template - int64 indexOf(const T &value) ///<获取数据在合集中的索引 + int64 indexOfValue(const T &value) ///<获取数据在合集中的索引 { CheckElementEqual cee(value); @@ -142,7 +148,7 @@ namespace hgl virtual bool isMember(const void *value) const{return indexOf(value)!=-1;} ///<判断当前数据是否是其成员 template - bool isMember(const T &value)const{return indexOf(value)!=-1;} ///<判断当前数据是否是其成员 + bool isMemberValue(const T &value)const{return indexOf(value)!=-1;} ///<判断当前数据是否是其成员 virtual int64 RemoveCondition(CheckElement *condition,int max_count=1); ///<按条件移除 @@ -166,7 +172,7 @@ namespace hgl * @return 移除的数据总量 */ template - int64 Remove(const T &value,int max_count=1) + int64 RemoveValue(const T &value,int max_count=1) { CheckElementEqual cee(value);