| 610 | |
| 611 | return desiredClass.downcast(rv); |
| 612 | } function getInheritedInstanceCount() { return Object.keys(registeredInstances).length; } function getLiveInheritedInstances() |
| 613 | { |
| 614 | const rv = []; |
| 615 | |
| 616 | for (const k in registeredInstances) { if (registeredInstances.hasOwnProperty(k)) { rv.push(registeredInstances[k]); } } |
| 617 | |
| 618 | return rv; |
| 619 | } function setDelayFunction(fn) { delayFunction = fn; if (deletionQueue.length && delayFunction) { delayFunction(flushPendingDeletes); } } function init_embind() { Module.getInheritedInstanceCount = getInheritedInstanceCount; Module.getLiveInheritedInstances = getLiveInheritedInstances; Module.flushPendingDeletes = flushPendingDeletes; Module.setDelayFunction = setDelayFunction; } var registeredInstances = {}; |
| 620 | |
| 621 | function getBasestPointer(class_, ptr) |
| 622 | { |