Implemented getCount(), getPosition() and setPosition()

Fixed IteratePrev() being wrong
This commit is contained in:
smallmodel 2023-08-27 18:40:38 +02:00
parent 21d41ce14b
commit 05fc960338
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -179,7 +179,7 @@ bool UList< type >::IteratePrev
{
m_at = m_at->prev;
if( m_at == this )
if( m_at == &m_top )
{
m_at = NULL;
return false;
@ -306,8 +306,7 @@ int UList< type >::getCount
)
{
// FIXME: stub
return 0;
return m_count;
}
template< typename type >
@ -338,8 +337,7 @@ void *UList< type >::getPosition
)
{
// FIXME: stub
return NULL;
return (void*)m_at;
}
template< typename type >
@ -349,7 +347,7 @@ void UList< type >::setPosition
)
{
// FIXME: stub
m_at = static_cast<UListItem<type>*>(pos);
}
#endif /* __ULIST_H__ */