1#ifndef _SMART_POINTER_H_
2#define _SMART_POINTER_H_
49 return ptr !=
nullptr;
53 virtual void reset(T* newPtr =
nullptr) = 0;
56 explicit operator bool()
const {
return IsValid(); }
virtual bool IsValid() const
True if the pointer is non-null.
SmartPointer(const SmartPointer &)=delete
SmartPointer(T *p=nullptr)
T * get() const
Raw pointer access; throws NullPointerException if unset.
SmartPointer & operator=(const SmartPointer &)=delete
virtual void reset(T *newPtr=nullptr)=0
Root namespace for everything the engine exposes.