#include <RefCntDynObjPtr.hpp>
List of all members.
Detailed Description
template<class T>
struct RefCntDynObjPtr< T >
This is a smart pointer class for a ref counted object (
RefCountI). It releases the ref in the destructor. It is not safe in case of a module being unloaded, since we're not tracking object lifetime. DynObjPtr<T> combines the two and is safer when plugin unload is possible at any time.
Constructor & Destructor Documentation
Two argument constructor.
- Parameters:
-
| pt | The DynObj we want to own. Should implement RefCountI. |
| do_add_ref | If we should add a reference or not (default value: true). |
Member Function Documentation
Assignment operator.
- Parameters:
-
Assignment operator.
- Parameters:
-
Do we have an object now?
Release our ref on object
The documentation for this struct was generated from the following file: