Reference linking. More...
|bool||unlink (ObjectType *object)|
|Unlink a smart pointer from a managed object. |
|void||link (const RefLinked &ptr, ObjectType *object)|
|Link a smart pointer to a managed object. |
class cxxtools::RefLinked< ObjectType >
ObjectType The managed object type
Reference linking means that no counter is required to keep track of the smart pointer objects, but all smart pointers form a linked list. When the list becomes empty the raw pointer si deleted. This Model has the advantage that it does not need to allocate memory, but is prone to circular dependencies.
Constructor & Destructor Documentation
Member Function Documentation
Link a smart pointer to a managed object.
Unlink a smart pointer from a managed object.
The documentation for this class was generated from the following file: