⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listit.cxx

📁 EFI(Extensible Firmware Interface)是下一代BIOS
💻 CXX
字号:
/*++

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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -