32 #ifndef _QORE_QOREOBJECTITERATOR_H
34 #define _QORE_QOREOBJECTITERATOR_H
36 #include "qore/intern/QoreHashIterator.h"
37 #include "qore/intern/QoreObjectIntern.h"
42 extern QoreClass* QC_OBJECTREVERSEITERATOR;
45 class QoreObjectIterator :
public QoreHashIterator {
47 DLLLOCAL QoreObjectIterator(
const QoreObject* o) : QoreHashIterator(qore_object_private::
get(*o)->getRuntimeMemberHash(0)) {
50 DLLLOCAL QoreObjectIterator() {
53 DLLLOCAL QoreObjectIterator(
const QoreObjectIterator& old) : QoreHashIterator(old) {
56 DLLLOCAL
virtual const char* getName()
const {
return "ObjectIterator"; }
61 class QoreObjectReverseIterator :
public QoreObjectIterator {
63 DLLLOCAL QoreObjectReverseIterator(
const QoreObject* o) : QoreObjectIterator(o) {
66 DLLLOCAL QoreObjectReverseIterator() {
69 DLLLOCAL QoreObjectReverseIterator(
const QoreObjectReverseIterator& old) : QoreObjectIterator(old) {
72 DLLLOCAL
virtual const char* getName()
const {
73 return "ObjectReverseIterator";
DLLEXPORT const QoreValue get() const
returns the value of the current key
defines a Qore-language class
Definition: QoreClass.h:249
the implementation of Qore's object data type, reference counted, dynamically-allocated only
Definition: QoreObject.h:60