![]() |
ezEngine Release 26.3
|
Base class for objects that require reference counting with virtual destructor. More...
#include <RefCounted.h>

Public Member Functions | |
| virtual | ~ezRefCounted ()=default |
| Adds a virtual destructor. | |
Public Member Functions inherited from ezRefCountingImpl | |
| ezRefCountingImpl ()=default | |
| Constructor. | |
| ezRefCountingImpl (const ezRefCountingImpl &rhs) | |
| void | operator= (const ezRefCountingImpl &rhs) |
| ezInt32 | AddRef () const |
| Increments the reference counter. Returns the new reference count. | |
| ezInt32 | ReleaseRef () const |
| Decrements the reference counter. Returns the new reference count. | |
| bool | IsReferenced () const |
| Returns true if the reference count is greater than 0, false otherwise. | |
| ezInt32 | GetRefCount () const |
| Returns the current reference count. | |
Base class for objects that require reference counting with virtual destructor.
Extends ezRefCountingImpl with a virtual destructor, making it suitable as a base class for polymorphic objects that need reference counting. Use this when you need virtual function dispatch and proper destruction through base class pointers.