renamed to First/Last from Begin/End in List<>
This commit is contained in:
parent
fc303f7a0d
commit
c3855586da
@ -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);
|
||||
|
@ -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 &)) ///<枚举所有数据成员
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user