std::shared_ptr<T> lock() const { auto ans = super.lock(); if (ans) { if ( ans->onDestory() ) { return std::shared_ptr<T>(); } } return ans; }
MainEntryPage::~MainEntryPage() { onDestory(); }
Spikes::~Spikes() { onDestory(); if (outerMesh) delete outerMesh; }
CQMesh::~CQMesh() { onDestory(); }