• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • kjs
reference_list.h
1 // -*- c-basic-offset: 2 -*-
2 /*
3  * This file is part of the KDE libraries
4  * Copyright (C) 2003 Apple Computer, Inc
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef _KJS_REFERENCE_LIST_H_
24 #define _KJS_REFERENCE_LIST_H_
25 
26 #include "types.h"
27 #include "reference.h"
28 
29 namespace KJS {
30 
31  class ReferenceListNode;
32  class ReferenceListHeadNode;
33 
37  class KJS_EXPORT ReferenceListIterator {
38  friend class ReferenceList;
39 
40  public:
41  bool operator!=(const ReferenceListIterator &it) const;
42  const Reference *operator->() const;
43  const Reference &operator++(int i);
44 
45  private:
46  ReferenceListIterator(ReferenceListNode *n);
47  ReferenceListIterator();
48  ReferenceListNode *node;
49  };
50 
54  class KJS_EXPORT ReferenceList {
55  public:
56  ReferenceList();
57  ReferenceList(const ReferenceList &list);
58  ReferenceList &operator=(const ReferenceList &list);
59  ~ReferenceList();
60 
61  void append(const Reference& val);
62  int length();
63 
64  ReferenceListIterator begin() const;
65  ReferenceListIterator end() const;
66 
67  private:
68  void swap(ReferenceList &list);
69  ReferenceListHeadNode *head;
70  ReferenceListNode *tail;
71  };
72 
73 }
74 
75 #endif
KJS::ReferenceListIterator
An iterator for a ReferenceList.
Definition: reference_list.h:37
KJS::Reference
Defines a Javascript reference.
Definition: reference.h:35
KJS
Definition: array_instance.h:28
KJS::ReferenceList
A list of Reference objects.
Definition: reference_list.h:54

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
Generated for kjs by doxygen 1.8.11
This website is maintained by Timothy Pearson.