Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Temp Class Referenceabstract

#include <elm/alloc/SimpleGC.h>

+ Inheritance diagram for Temp:

Public Member Functions

 Temp (SimpleGC &gc)
 
virtual ~Temp (void)
 
virtual void collect (SimpleGC &gc)=0
 
- Public Member Functions inherited from DLNode
DLNodenext (void) const
 
DLNodeprevious (void) const
 
bool atBegin (void) const
 
bool atEnd (void) const
 
void replace (DLNode *node)
 
void insertAfter (DLNode *node)
 
void insertBefore (DLNode *node)
 
void remove (void)
 
void removeNext (void)
 
void removePrevious (void)
 

Detailed Description

This class records itself to a garbage collector as representing a set of alive values. When a garbage collection is started, the collect() method is called.

Constructor & Destructor Documentation

◆ Temp()

Temp ( SimpleGC gc)
inline

Build a temporary.

Parameters
gcGarbage collector.

References DLList::addFirst().

◆ ~Temp()

~Temp ( void  )
virtual

References DLNode::remove().

Member Function Documentation

◆ collect()

virtual void collect ( SimpleGC gc)
pure virtual

Implemented in TempPtr< T >.


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