ScummVM API documentation
llist.h
1
2
/* ScummVM - Graphic Adventure Engine
3
*
4
* ScummVM is the legal property of its developers, whose names
5
* are too numerous to list here. Please refer to the COPYRIGHT
6
* file distributed with this source distribution.
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*
21
*/
22
23
#ifndef BAGEL_BOFLIB_LLIST_H
24
#define BAGEL_BOFLIB_LLIST_H
25
26
namespace
Bagel
{
27
31
class
CLList
{
32
protected
:
33
CLList
*_pPrev;
// Pointer to next link in chain
34
CLList
*_pNext;
// Pointer to previous link in chain
35
void
*_pData;
// Pointer to owning CData
36
37
public
:
41
CLList
();
42
46
CLList
(
void
*pObj);
47
51
virtual
~CLList
();
52
58
void
Insert
(
CLList
*pNewList);
59
63
void
Delete
();
64
71
void
addToHead
(
CLList
*pNewList);
72
79
void
addToTail
(
CLList
*pNewList);
80
84
void
MoveToHead
();
85
89
void
MoveToTail
();
90
94
void
MoveLeft
();
95
99
void
MoveRight
();
100
105
CLList
*
getHead
();
106
111
CLList
*
getTail
();
112
CLList
*getPrev()
const
{
113
return
_pPrev;
114
}
115
116
CLList
*getNext()
const
{
117
return
_pNext;
118
}
119
120
void
*getData()
const
{
121
return
_pData;
122
}
123
124
void
PutData(
void
*pObj) {
125
_pData = pObj;
126
}
127
131
void
FlushList
();
132
};
133
134
135
}
// namespace Bagel
136
137
#endif
Bagel::CLList::getHead
CLList * getHead()
Bagel::CLList::getTail
CLList * getTail()
Bagel::CLList::MoveToTail
void MoveToTail()
Bagel::CLList::Insert
void Insert(CLList *pNewList)
Bagel::CLList::CLList
CLList()
Bagel::CLList::addToHead
void addToHead(CLList *pNewList)
Bagel::CLList::addToTail
void addToTail(CLList *pNewList)
Bagel::CLList::~CLList
virtual ~CLList()
Bagel
Definition:
bagel.h:31
Bagel::CLList::FlushList
void FlushList()
Bagel::CLList::Delete
void Delete()
Bagel::CLList
Definition:
llist.h:31
Bagel::CLList::MoveLeft
void MoveLeft()
Bagel::CLList::MoveRight
void MoveRight()
Bagel::CLList::MoveToHead
void MoveToHead()
engines
bagel
boflib
llist.h
Generated on Fri Aug 30 2024 09:09:21 for ScummVM API documentation by
1.8.13