listit.cxx
来自「EFI(Extensible Firmware Interface)是下一代BI」· CXX 代码 · 共 56 行
CXX
56 行
/*++
Copyright (c) 1991-1999 Microsoft Corporation
Module Name:
listit.cxx
--*/
#include <pch.cxx>
#define _ULIB_MEMBER_
#include "ulib.hxx"
#include "listit.hxx"
DEFINE_CONSTRUCTOR( LIST_ITERATOR, ITERATOR );
DEFINE_CAST_MEMBER_FUNCTION( LIST_ITERATOR );
VOID
LIST_ITERATOR::Reset(
)
{
_current = NULL;
}
POBJECT
LIST_ITERATOR::GetCurrent(
)
{
return _current ? _current->data : NULL;
}
POBJECT
LIST_ITERATOR::GetNext(
)
{
_current = _current ? _current->next : _list->_head;
return _current ? _current->data : NULL;
}
POBJECT
LIST_ITERATOR::GetPrevious(
)
{
_current = _current ? _current->prev : _list->_tail;
return _current ? _current->data : NULL;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?