Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXGarbageCollector Class Reference

Garbage Collector. More...

#include <FXGarbageCollector.h>

List of all members.

Public Methods

 FXGarbageCollector ()
FXint no ()
void operator= (FXObject *o)
void operator= (FXStream *s)
void operator= (FXException *e)
void operator+= (FXObject *o)
void operator+= (FXStream *s)
void operator+= (FXException *e)
void add (FXObject *o)
void add (FXStream *s)
void add (FXException *e)
 ~FXGarbageCollector ()


Detailed Description

Garbage Collector.

Assign your dynamically created objects to this object. It will delete them when it goes out of scope.

Idea taken from CGarbage from the DlgEdit program from Martin Welch

Definition at line 35 of file FXGarbageCollector.h.


Constructor & Destructor Documentation

FXEX::FXGarbageCollector::FXGarbageCollector [inline]
 

give me a garbage collector.

Definition at line 39 of file FXGarbageCollector.h.

FXEX::FXGarbageCollector::~FXGarbageCollector
 

when we destruct, we garbage collect.


Member Function Documentation

FXint FXEX::FXGarbageCollector::no [inline]
 

Number of objects in garbage collector.

Definition at line 42 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator= FXObject * o [inline]
 

assignment or addition just adds the object to the garbage collector.

Definition at line 45 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator= FXStream * s [inline]
 

Definition at line 46 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator= FXException * e [inline]
 

Definition at line 47 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator+= FXObject * o [inline]
 

assignment or addition just adds the object to the garbage collector.

Definition at line 50 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator+= FXStream * s [inline]
 

Definition at line 51 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::operator+= FXException * e [inline]
 

Definition at line 52 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::add FXObject * o [inline]
 

we just add the object to the garbage collector.

Definition at line 55 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::add FXStream * s [inline]
 

Definition at line 56 of file FXGarbageCollector.h.

void FXEX::FXGarbageCollector::add FXException * e [inline]
 

Definition at line 57 of file FXGarbageCollector.h.