Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kjs
kjs
kjs
reference_list.h
1
/*
2
* This file is part of the KDE libraries
3
* Copyright (C) 2003 Apple Computer, Inc
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*
20
*/
21
22
#ifndef _KJS_REFERENCE_LIST_H_
23
#define _KJS_REFERENCE_LIST_H_
24
25
#include "types.h"
26
#include "reference.h"
27
28
namespace
KJS {
29
30
class
ReferenceListNode;
31
class
ReferenceListHeadNode;
32
36
class
KJS_EXPORT
ReferenceListIterator
{
37
friend
class
ReferenceList
;
38
39
public
:
40
bool
operator!=(
const
ReferenceListIterator
&it)
const
;
41
const
Reference
*operator->()
const
;
42
const
Reference
&operator++(
int
i);
43
44
private
:
45
ReferenceListIterator
(ReferenceListNode *n);
46
ReferenceListIterator
();
47
ReferenceListNode *node;
48
};
49
53
class
KJS_EXPORT
ReferenceList
{
54
public
:
55
ReferenceList
();
56
ReferenceList
(
const
ReferenceList
&list);
57
ReferenceList
&operator=(
const
ReferenceList
&list);
58
~
ReferenceList
();
59
60
void
append(
const
Reference
& val);
61
int
length();
62
63
ReferenceListIterator
begin()
const
;
64
ReferenceListIterator
end()
const
;
65
66
private
:
67
void
swap(
ReferenceList
&list);
68
ReferenceListHeadNode *head;
69
ReferenceListNode *tail;
70
};
71
72
}
73
74
#endif
KJS::ReferenceListIterator
An iterator for a ReferenceList.
Definition:
reference_list.h:36
KJS::ReferenceList
A list of Reference objects.
Definition:
reference_list.h:53
KJS::Reference
Defines a Javascript reference.
Definition:
reference.h:34
kjs
Skip menu "kjs"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
kjs
Skip menu "kjs"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet