Qore Programming Language - C/C++ Library 2.2.1
Loading...
Searching...
No Matches
QoreClassDestructorHierarchyIterator Class Reference

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

#include <QoreClass.h>

Public Member Functions

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
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: