vtkRefCount

来源:互联网 发布:微山湖武工队淘宝店 编辑:程序博客网 时间:2024/05/04 16:32

vtkRefCount:

功能:

reference counting,with the combination of New/Delete;继承自vtkobject

数据:

  int RefCount;      // Number of uses of this object by other objects
  int ReferenceCounting; // Turn on/off reference counting mechanism

成员:

// 对一些off stack的对象,如自动对象(automatic object),设置ReferenceCounting=0
  void ReferenceCountingOff();

// ++/--RefCount,当RefCount==0,则撤销对象
  void Register(vtkObject* o);
  void UnRegister(vtkObject* o);//在Delete()中调用

 

 

参考:

automatic object: http://msdn.microsoft.com/en-us/library/a06fs503.aspx

原创粉丝点击