Qore Programming Language: include/qore/QoreIteratorBase.h (6585) Source File

Qore Programming Language 0.8.11

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
QoreIteratorBase.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3 QoreIteratorBase.h
4
5 abstract class for private data for iterators in objects
6
7 Qore Programming Language
8
9 Copyright 2003 - 2014 David Nichols
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 */
25
26 #ifndef _QORE_QOREITERATORBASE_H
27
28 #define _QORE_QOREITERATORBASE_H
29
30 #include <qore/AbstractPrivateData.h>
31
32 DLLEXPORT extern QoreClass* QC_ABSTRACTITERATOR;
33 DLLEXPORT extern QoreClass* QC_ABSTRACTBIDIRECTIONALITERATOR;
34 DLLEXPORT extern QoreClass* QC_ABSTRACTQUANTIFIEDBIDIRECTIONALITERATOR;
35 DLLEXPORT extern QoreClass* QC_ABSTRACTQUANTIFIEDITERATOR;
36
37 class QoreAbstractIteratorBase {
38 protected:
39 int tid;
40
41 public:
43 DLLEXPORT QoreAbstractIteratorBase();
44
46 DLLEXPORT virtual ~QoreAbstractIteratorBase();
47
49 DLLEXPORT int check(ExceptionSink* xsink) const;
50
52 DLLEXPORT virtual const char* getName() const = 0;
53 };
54
56 class QoreIteratorBase : public AbstractPrivateData, public QoreAbstractIteratorBase {
57 protected:
59 DLLEXPORT virtual ~QoreIteratorBase();
60
61 public:
63 DLLEXPORT QoreIteratorBase();
64 };
65
66 #endif
AbstractPrivateData
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:36
QoreIteratorBase
abstract base class for iterator private data
Definition: QoreIteratorBase.h:56
QoreClass
defines a Qore-language class
Definition: QoreClass.h:186
QoreIteratorBase::QoreIteratorBase
DLLEXPORT QoreIteratorBase()
creates the object and marks it as owned by the current thread
ExceptionSink
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
QoreIteratorBase::~QoreIteratorBase
virtual DLLEXPORT ~QoreIteratorBase()
destroys the object