#include <ixlib_garbage.hh>
Inheritance diagram for ixion::no_free_ref::
Public Methods | |
no_free_ref (no_free_ref const &src) | |
template<class T2> | no_free_ref (ref< T2, T_Managed > const &src) |
template<class T2> | no_free_ref (no_free_ref< T2, T_Managed > const &src) |
no_free_ref (T *instance=NULL) | |
~no_free_ref () | |
no_free_ref & | operator= (no_free_ref const &src) |
no_free_ref & | operator= (T *ptr) |
void | release () |
void | set (T *instance) |
T * | releaseFromGCArena () |
This is useful to pass objects allocated e.g. on the stack along inside ref's, while making sure they aren't freed. (which would most probably lead to disaster)
no_free_ref's are mostly a hack, but there are situations where you cannot avoid them. But even so, you should try not to use them where possible.
The corresponding reference_manager is identified implicitly through static references.
Definition at line 197 of file ixlib_garbage.hh.
|
Definition at line 201 of file ixlib_garbage.hh. |
|
Definition at line 206 of file ixlib_garbage.hh. |
|
Definition at line 211 of file ixlib_garbage.hh. |
|
Definition at line 215 of file ixlib_garbage.hh. |
|
Definition at line 219 of file ixlib_garbage.hh. |
|
Definition at line 228 of file ixlib_garbage.hh. |
|
Definition at line 224 of file ixlib_garbage.hh. |
|
Definition at line 234 of file ixlib_garbage.hh. |
|
Definition at line 245 of file ixlib_garbage.hh. |
|
Definition at line 238 of file ixlib_garbage.hh. Referenced by operator=().
|