Qore Programming Language  0.9.3.1
QoreClassDestructorHierarchyIterator Class Reference

iterates the class hierarchy in the order of destructor execution More...

#include <QoreClass.h>

Public Member Methods

DLLEXPORT QoreClassDestructorHierarchyIterator (const QoreClass *cls)
 creates the iterator; call next() to start iterating
 
DLLEXPORT ~QoreClassDestructorHierarchyIterator ()
 destroys the object
 
DLLEXPORT const QoreClassget () const
 returns the parent class
 
DLLEXPORT bool isVirtual () const
 returns true if the class has virtual inheritance, meaning that it is a builtin class without its own private data More...
 
DLLEXPORT bool next ()
 returns advances to the next element (or to the first element if starting to iterate) and returns true if there is an element to query or returns false if at the end of the list
 
DLLEXPORT bool valid () const
 returns true if the iterator is pointing at a valid element
 

Detailed Description

iterates the class hierarchy in the order of destructor execution

See also
QoreClassHierarchyIterator
Since
Qore 0.9

Member Function Documentation

◆ isVirtual()

DLLEXPORT bool QoreClassDestructorHierarchyIterator::isVirtual ( ) const

returns true if the class has virtual inheritance, meaning that it is a builtin class without its own private data

if true, compatible private data is supplied by a child class


The documentation for this class was generated from the following file: