Delete vtkObjectBase Object

The interface vtkObjectBase::UnRegister will reduce the reference count for pointer and delete the pointer if the reference count becomes zero. vtkObjectBase::Delete <= vtkObjectBase::UnRegister <= vtkObjectBase::UnRegisterInternal <= delete ptr vtkSmartPointerBase::~vtkSmartPointerBase { vtkObjectBase* object = this->Object; if(object) { this->Object = nullptr; object->UnRegister(nullptr); Read more…

The Sort And Operator[] Of QMap

sort The QMap object sorts the elements in it by key rather than the order of insert operation. Let’s see the following example. #include <iostream> #include <QMap> #include <QString> using namespace std; int main() { QMap<QString, int> vars; vars.insert( “ABD”, Read more…

You cannot copy content of this page