70 this->CheckObjectBase(this->Object);
79 T* obj = this->Object;
82 this->Object =
nullptr;
114 return static_cast<T*
>(this->Object);
125 return *
static_cast<T*
>(this->Object);
130 void operator=(
vtkNew<T> const&) =
delete;
~vtkNew()
Deletes reference to instance of T on destruction.
T * Get() const
Get a raw pointer to the contained object.
T & operator*() const
Dereference the pointer and return a reference to the contained object.
vtkNew()
Create a new T on construction.
T * operator->() const
Enable pointer-like dereference syntax.
abstract base class for most VTK objects
T * GetPointer() const
Get a raw pointer to the contained object.
Allocate and hold a VTK object.