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

CDefinition Class Reference

The CDefinition class keeps track of static variables and names for a type of rebi as well as the names of local members and how they should be instantiated. More...

Collaboration diagram for CDefinition:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Construct (CProcessData *owner)
 The Construct function sets up the internal structure of the CDefinition object.
void Destruct ()
 The Destruct function properly de-allocates and cleans up the internal structure of a CDefinition.

Public Attributes

long refcount
 the number of references to this definition, a defintion is released when there are no references
LongArray staticnames
 the names of the statics as indexes in a sting table
CThingArray staticrefs
 pointers to CThings that are the static references
LongArray localnames
 the names of the local members as indices into a string table
LongArray localinstantationnames
 The name, if any that a given local need to instantiate or reference upon being created.
Int8Array localinstantationtypes
 The way that each local should be created, for example as a reference, instance, ect.
unsigned long codelegth
 the length of the byte code data
__int8 * code
 pointer to byte code data)
CProcessDataownerprocess
 the process this CDefintion belongs to, is always valid and non-null
HANDLE mutex
 the unique mutex for this CDefinition

Detailed Description

The CDefinition class keeps track of static variables and names for a type of rebi as well as the names of local members and how they should be instantiated.

All CThings are associated with a CDefinition, but a CDefinition may be pointed to by more than one CThing. CDefinitions have their own internal refernce counting mechanism. CDefinitions each have an internal mutex that should be acquired before using their member variables.


Member Function Documentation

void CDefinition::Construct CProcessData owner  ) 
 

The Construct function sets up the internal structure of the CDefinition object.

If you create a CDefinition though a call to malloc or new you must call its construct function after creating it. The Construct function is properly used by any functions in this API that returns a new CDefintion.

See also:
CDefinition::Destruct()

void CDefinition::Destruct  ) 
 

The Destruct function properly de-allocates and cleans up the internal structure of a CDefinition.

If you are manually destroying a CDefinition by any method you must call Destruct on it before doing so. Failure to call Destruct will cause memory leaks.

See also:
CDefinition::Construct()


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