Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

c_base Struct Reference

#include <parser-structs.h>

Inheritance diagram for c_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 c_base ()
virtual void deep_delete ()=0
virtual ~c_base ()

Static Public Member Functions

void set_safety (const bool safe)
void delete_us ()

Static Public Attributes

vector< c_base * > c_elements
bool safety

Detailed Description

This class is the base class of all parser categories.


Constructor & Destructor Documentation

c_base::c_base  ) 
 

Default constructor.

c_base::~c_base  )  [virtual]
 

Virtual destructor, needed because we have virtual methods.


Member Function Documentation

virtual void c_base::deep_delete  )  [pure virtual]
 

A pure virtual method that should delete a c_* instance and all sub-c_* elements therein.

Implemented in c_term, and c_rule.

void c_base::delete_us  )  [static]
 

Garbage collects all c_* elements allocated during safe mode.

void c_base::set_safety const bool  safe  )  [static]
 

Enables/disables the safety. When the safety is on, pointers to all created c_* elements are stored away for garbage collection later.

Parameters:
safe Safety value.


Member Data Documentation

vector< c_base * > c_base::c_elements [static]
 

The c_* elements stored away for garbage collections.

bool c_base::safety [static]
 

Safety mode flag.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 16 20:54:18 2005 for Fixpoint Engine by  doxygen 1.3.9.1