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); } } We can get the reference count and consumer 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”, 1 ); vars.insert( “ABE”, 2 ); QMapIterator<QString, int> it( vars Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X