ezEngine Release 26.3
Loading...
Searching...
No Matches
ezRefCountedContainer< TYPE > Class Template Reference

Wrapper that makes any type reference counted. More...

#include <RefCounted.h>

Inheritance diagram for ezRefCountedContainer< TYPE >:

Public Attributes

TYPE m_Content
 

Additional Inherited Members

- Public Member Functions inherited from ezRefCounted
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.
 

Detailed Description

template<typename TYPE>
class ezRefCountedContainer< TYPE >

Wrapper that makes any type reference counted.

Useful for making existing types reference counted without modifying their implementation. The contained object can be accessed via the m_Content member. Inherits from ezRefCounted to provide virtual destructor and reference counting functionality.


The documentation for this class was generated from the following file: