AutoPtr.h File Reference


Detailed Description

From the Poco C++ Libraries; used for ES40 for OpenVMS only, as Poco has dropped OpenVMS support.

Id
AutoPtr.h,v 1.2 2008/04/01 11:44:44 iamcamiel Exp

X-1.1 Camiel Vanderhoeven 31-MAR-2008 Adapted for use by the ES40 Emulator.

Definition in file AutoPtr.h.

#include "VMS/Foundation.h"
#include "VMS/Exception.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  Poco

Data Structures

class  Poco::AutoPtr< C >
 AutoPtr is a "smart" pointer for classes implementing reference counting based garbage collection. To be usable with the AutoPtr template, a class must implement the following behaviour: A class must maintain a reference count. The constructors of the object initialize the reference count to one. The class must implement a public duplicate() method: void duplicate(); that increments the reference count by one. The class must implement a public release() method: void release() that decrements the reference count by one, and, if the reference count reaches zero, deletes the object. More...

Functions

template<class C>
void Poco::swap (AutoPtr< C > &p1, AutoPtr< C > &p2)


SourceForge.net Logo
Project space on SourceForge.net