73 this->CheckObjectBase(this->Object);
82 T* obj = this->Object;
119 void operator=(
vtkNew<T> const&) VTK_DELETE_FUNCTION;
127 inline ostream& operator << (ostream& os, const vtkNew<T>& p)
129 return os << p.GetPointer();
~vtkNew()
Deletes reference to instance of T on destruction.
T * GetPointer() const
Get a raw pointer to the contained object.
vtkNew()
Create a new T on construction.
T * Get() const
Get a raw pointer to the contained object.
T * operator->() const
Enable pointer-like dereference syntax.
abstract base class for most VTK objects
Allocate and hold a VTK object.