The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
CodeGeneration.TemporalVariablesTable Class Reference

Implementation of a table of variables. thist tables search for an id according to its string type representation More...

Public Member Functions

 TemporalVariablesTable ()
 
void Insert (string type, string id)
 Insert a new temporal var. If the variable exists it. the new pair is not inserted More...
 
string SearchId (string type)
 Searches the temporal variable.whose type is represented in type More...
 
void Clear ()
 Deletes all the values in the table More...
 

Properties

static TemporalVariablesTable Instance [get]
 Gets the unique instance of TemporalVariablesTable More...
 

Detailed Description

Implementation of a table of variables. thist tables search for an id according to its string type representation

Definition at line 27 of file TemporalVariablesTable.cs.

Constructor & Destructor Documentation

CodeGeneration.TemporalVariablesTable.TemporalVariablesTable ( )

Definition at line 62 of file TemporalVariablesTable.cs.

Member Function Documentation

void CodeGeneration.TemporalVariablesTable.Clear ( )

Deletes all the values in the table

Definition at line 104 of file TemporalVariablesTable.cs.

void CodeGeneration.TemporalVariablesTable.Insert ( string  type,
string  id 
)

Insert a new temporal var. If the variable exists it. the new pair is not inserted

Parameters
typeString representing the type to map.
ididentifier of the variable.

if the type exists it raises and exception

Definition at line 76 of file TemporalVariablesTable.cs.

string CodeGeneration.TemporalVariablesTable.SearchId ( string  type)

Searches the temporal variable.whose type is represented in type

Parameters
typetype of of the auxiliar variable.
Returns
Returns the associated id whose type is "type", or null if not found.

Definition at line 91 of file TemporalVariablesTable.cs.

Property Documentation

TemporalVariablesTable CodeGeneration.TemporalVariablesTable.Instance
staticget

Gets the unique instance of TemporalVariablesTable

Definition at line 50 of file TemporalVariablesTable.cs.


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