apt @VERSION@
Public Member Functions

WeakPointable Class Reference

#include <weakptr.h>

Inheritance diagram for WeakPointable:
pkgAcquire::Item pkgAcquire::ItemDesc pkgAcquire::Worker pkgAcqArchive pkgAcqDiffIndex pkgAcqFile pkgAcqIndex pkgAcqIndexDiffs pkgAcqMetaIndex pkgAcqMetaSig pkgAcqSubIndex pkgAcquire::Queue::QItem

List of all members.

Public Member Functions

void AddWeakPointer (WeakPointable **weakptr)
void RemoveWeakPointer (WeakPointable **weakptr)
 ~WeakPointable ()

Detailed Description

Class for objects providing support for weak pointers.

This class allows for the registration of certain pointers as weak, which will cause them to be set to NULL when the destructor of the object is called.


Constructor & Destructor Documentation

~WeakPointable ( ) [inline]

Deconstruct the object, set all weak pointers to NULL.


Member Function Documentation

void AddWeakPointer ( WeakPointable **  weakptr) [inline]

Add a new weak pointer.

void RemoveWeakPointer ( WeakPointable **  weakptr) [inline]

Remove the weak pointer from the list of weak pointers.


The documentation for this class was generated from the following file: