renamed to First/Last from Begin/End in List<>
This commit is contained in:
@@ -24,7 +24,7 @@ namespace hgl
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool List<T>::Begin(T &ti)const
|
bool List<T>::First(T &ti)const
|
||||||
{
|
{
|
||||||
if(!items||count<=0)
|
if(!items||count<=0)
|
||||||
return(false);
|
return(false);
|
||||||
@@ -34,7 +34,7 @@ namespace hgl
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool List<T>::End(T &ti)const
|
bool List<T>::Last(T &ti)const
|
||||||
{
|
{
|
||||||
if(!items||count<=0)
|
if(!items||count<=0)
|
||||||
return(false);
|
return(false);
|
||||||
|
@@ -83,8 +83,8 @@ namespace hgl
|
|||||||
void Set(int,const T &); ///<设置指定索引处的数据
|
void Set(int,const T &); ///<设置指定索引处的数据
|
||||||
bool Rand(T &)const; ///<随机取得一个数据
|
bool Rand(T &)const; ///<随机取得一个数据
|
||||||
|
|
||||||
virtual bool Begin(T &)const; ///<取第一个数据
|
virtual bool First(T &)const; ///<取第一个数据
|
||||||
virtual bool End(T &)const; ///<取最后一个数据
|
virtual bool Last(T &)const; ///<取最后一个数据
|
||||||
|
|
||||||
virtual void Enum(void (*enum_func)(int,T &)) ///<枚举所有数据成员
|
virtual void Enum(void (*enum_func)(int,T &)) ///<枚举所有数据成员
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user