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

CProcessData Class Reference

The CProcessData represents the script as a whole. More...

Collaboration diagram for CProcessData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Construct (IMemory *m, CStringManager *s)
 This function readies the CProcessObject for use.
void Destruct ()
 The Destruct funtion cleans up the internall structure of the process.
void Finalize ()
 The finalize breaks the possibly circular links betweem the process and the global scope, interpreter exception, and undef objects.
void SetBasics (CThing *u, CThing *i)
 The set basics function sets the undef and interpterexception values.

Public Attributes

long references
 The number of references to this process.
IMemorymanager
 The memory manager used by this process.
CStringManagerstrings
 The string manager for this process.
CScopeglobalscope
 The global scope.
unsigned long processid
 A number that at one time was to uniqely identify the process, depriciated.
HANDLE mutex
 A unique mutex for the process.
CDllManager dlls
 The dll manager for the process.
CThingundef
 The undef rebi.
CThinginterpterexception
 The interpreterexception rebi.

Detailed Description

The CProcessData represents the script as a whole.

The CProcessData class contains the global scope, the string table, the interpreter exception and undef values. This class is also reference counted, however because everything references the process data it is necessary to break the global scope, the interpreter exception and undef links manually when closing the process, otherwise the process will be gaurenteed to always have references.


Member Function Documentation

void CProcessData::Construct IMemory m,
CStringManager s
 

This function readies the CProcessObject for use.

It also calls the srand function, creates the globalscope, and initializes the dll manager.

Parameters:
m the memory manager that this process will use.
s the string manager that this process will use.

void CProcessData::Destruct  ) 
 

The Destruct funtion cleans up the internall structure of the process.

The string manager is also freed by the Destruct function, you should not delete it yourself or share it with other processes.

void CProcessData::SetBasics CThing u,
CThing i
 

The set basics function sets the undef and interpterexception values.

The reference counts for these two values are not adjusted. Also no checks are made to see if these values are already set.

Parameters:
u the new undef value.
i the new interpterexception value.


The documentation for this class was generated from the following files:
Generated on Sat Apr 16 16:31:09 2005 for Centum API by  doxygen 1.4.2