renamed to First/Last from Begin/End in List<>

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-06-28 18:33:34 +08:00
parent fc303f7a0d
commit c3855586da
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ namespace hgl
}
template<typename T>
bool List<T>::Begin(T &ti)const
bool List<T>::First(T &ti)const
{
if(!items||count<=0)
return(false);
@ -34,7 +34,7 @@ namespace hgl
}
template<typename T>
bool List<T>::End(T &ti)const
bool List<T>::Last(T &ti)const
{
if(!items||count<=0)
return(false);

View File

@ -83,8 +83,8 @@ namespace hgl
void Set(int,const T &); ///<设置指定索引处的数据
bool Rand(T &)const; ///<随机取得一个数据
virtual bool Begin(T &)const; ///<取第一个数据
virtual bool End(T &)const; ///<取最后一个数据
virtual bool First(T &)const; ///<取第一个数据
virtual bool Last(T &)const; ///<取最后一个数据
virtual void Enum(void (*enum_func)(int,T &)) ///<枚举所有数据成员
{