CWizSafePtr - smart pointer class which basic garbage collections (i.e. knows to
delete the pointer in destructor). From here and later every pointer class must holda pointer allocated from heap only! Copy operator attaches the object to the
pointer and then detaches it from previous pointer - "pessimistic shadow copy".

CWizSafeArray - simple array of objects.

CWizDuplPtr - implements deep copy semantics for copy constructor/operator.
Requires from an object to have a copy constructor. No polymorphism.

CWizClonePtr - implements deep copy semantics for copy constructor/operator, with
support for polymorphism in pointed object. Requires from an object to have a Clone()
function. In the case of polymorphism a Clone() function must be virtual function
returning pointer to the root of hierarchy.
An example:

CWizCounterMultiRefPtr - optimized Multiply pointer classes with reference
counting and polymorphism. Differs from CWizBaseMultiRefPtr in implementing reference
counting,
which shifted to the managed class itself. It minimizes memory fragmentation, but requires
access to the managed classes, which is not always possible.

Multiply pointer class with reference counting CWizMultiPtr.
Designed to hold objects of one class (no polymorphism). Several pointers can point to the
same object; the object deleted when destroying the last pointer to it. By the nature uses
shallow copy.
File MULTIPTR.H .

Comments

It's all MFC

Posted by Legacy
on 12/18/2001 12:00am

Originally posted by:
NMTop40

And it doesn't work when I look at it in the window here (no new-lines)

The software-defined WAN (SD-WAN) has emerged as the solution for enterprises embracing cloud computing as a means to realizing digital transformation. In this IDC brief, learn why the need for SD-WAN will be even greater than the need for SDN in the data center, especially when an organization's application profile is migrating toward public cloud services and where customer engagement is most valued.