#include <at_lifetime.h>
Inheritance diagram for at::PtrTarget_Generic< w_count_t, w_ptr_style_traits >:


Public Types | |
| typedef w_ptr_style_traits | t_ptr_style |
Public Methods | |
| virtual | ~PtrTarget_Generic () |
| PtrTarget_Generic () | |
| PtrTarget_Generic (const PtrTarget_Generic &) | |
| PtrTarget_Generic & | operator= (const PtrTarget_Generic &) |
| int | AddRef () const |
| int | Release () const |
Friends | |
| class | PtrTarget_Helpers< w_count_t, w_ptr_style_traits > |
| class | AT_TEST_LifeControlExp |
| struct | MPT_Finder |
| w_count | the count type - this can be any type that supports pre-increment or pre-decrement and compares equal to or greater than zero. |
|
|||||
|
t_ptr_style defines the style type of this class. |
|
|||||||||
|
|
|
|||||||||
|
PtrTarget_Generic() initializes with a reference count of 1. Upon creation, the object has has a reference (the creator) and so the reference count is set to InitCount. |
|
||||||||||
|
The copy constructor also initializes with a reference count of 1. The reference count is a count of the references to this which has nothing to do with the object that is being copied. Hence the reference count on copy construction is also set to InitCount. |
|
|||||||||
|
The AddRef() method adds 1 to the reference count to this object.
|
|
||||||||||
|
Assignment operator. The reference count of the parameter has no bearing on the count of references to this. This is why the input parameter reference count is ignored. |
|
|||||||||
|
The Release() method decrements by 1 the reference count to this object. Once all references have been released (the reference count is zero), the PtrTarget implementation is expected to delete itself. The act of "deleting itself" may be determinted to be different for each kind of implementation.
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
PtrTarget_Helpers allows access to internal methods |
Generated for Austria by
and
MakeXS at Sun Oct 24 17:35:34 PDT 2004