C# Class Spinach.InterpreterVisitor

Inheritance: Visitor
Datei anzeigen Open project: rkpandya/pinac Class Usage Examples

Public Methods

Method Description
HandleSingleMatrixElement ( AssignmentOperationElement element ) : void
InterpreterVisitor ( ) : System
PerformVectorSingleElementOperation ( VectorElement temp ) : void
VisitAdditionOperationElement ( AdditiveElement element ) : void
VisitAssignmentOperationElement ( AssignmentOperationElement element ) : void
VisitBracketElement ( BracketElement element ) : void
VisitCommentElement ( CommentElement element ) : void
VisitDeleteElement ( DeleteVariable element ) : void
VisitDotProductElement ( DotProductElement element ) : void
VisitDoubleElement ( DoubleElement element ) : void
VisitForStatementElement ( ForStatementElement element ) : void
VisitFunctionCallElement ( FunctionCallElement element ) : void
VisitFunctionElement ( FunctionElement element ) : void
VisitIfStatementElement ( IfStatementElement element ) : void
VisitIntegerElement ( IntegerElement element ) : void
VisitMatrixElement ( MatrixVariableDeclaration element ) : void
VisitMatrixReference ( MatrixReference element ) : void
VisitMatrixSingleElement ( MatrixElement element ) : void
VisitMatrixTransposeElement ( MatrixTranspose element ) : void
VisitMultiplicationElement ( MultiplicationElement element ) : void
VisitParallelForElement ( ParallelForElement element ) : void
VisitPlotFunctionElement ( PlotFunctionElement element ) : void
VisitPrintOperationElement ( PrintOperationElement element ) : void
VisitReturnElement ( ReturnElement element ) : void
VisitScalarArgument ( ScalarArgument element ) : void
VisitStringElement ( StringElement element ) : void
VisitStructAssignment ( StructAssignDeclaration element ) : void
VisitStructDeclaration ( StructDeclaration element ) : void
VisitStructObject ( StructObjectDeclaration element ) : void
VisitStructVar ( ScalarVariableDeclaration element ) : void
VisitSubtractionElement ( SubtractionElement element ) : void
VisitVariableElement ( VariableElement element ) : void
VisitVectorElement ( VectorVariableDeclaration element ) : void
VisitVectorReference ( VectorReference element ) : void
VisitVectorSingleElement ( VectorElement element ) : void
clearMap ( ) : void
getIfElement ( Element element ) : String
getMap ( ) : Hashtable
getTopOfStack_Matrix ( ) : Object
map_contains_matrix ( string key ) : bool
result ( string coremsg ) : void
sendres ( int code, string errormsg ) : void
setBySwarm ( ) : void
setPlotObj ( PlotReceiver pr ) : void

Private Methods

Method Description
CreateData ( ) : void
CreateForData ( ForStatementElement element ) : void
GetTypeOfElement ( Element elem ) : int
HandleSingleVectorElement ( AssignmentOperationElement element ) : void
ParallelAddition ( AdditiveElement element ) : void
ParallelMatrixElement ( AssignmentOperationElement element ) : void
ParallelMul ( MultiplicationElement element ) : void
ParallelSub ( SubtractionElement element ) : void
ParallelVectorElement ( AssignmentOperationElement element ) : void
PerformDoubleAddition ( Object obj_rhs, Object obj_lhs ) : void
PerformDoubleMultiplication ( Object obj_rhs, Object obj_lhs ) : void
PerformDoubleSubtraction ( Object obj_rhs, Object obj_lhs ) : void
PerformIntAddition ( Object obj_rhs, Object obj_lhs ) : void
PerformIntMultiplication ( Object obj_rhs, Object obj_lhs ) : void
PerformIntSubtraction ( Object obj_rhs, Object obj_lhs ) : void
PerformMatrixSingleElementOperation ( MatrixElement temp ) : void
PrintMatrix ( Object obj ) : void
PrintStruct ( Object obj ) : void
PrintVariable ( Element elem ) : void
PrintVector ( Object obj ) : void
convert_Ele_to_plot ( PlotFunctionElement p ) : Spinach.Plot
createElse ( IfStatementElement element ) : void
createIf ( IfStatementElement element ) : void
execParallel ( string body, string data, int start, int stop ) : void
getIndex ( VectorElement temp ) : int
getMatrixCol ( MatrixElement temp ) : int
getMatrixRow ( MatrixElement temp ) : int
intData ( string element ) : void
matrixData ( string matrixVar ) : void
varData ( string Var ) : void
vectorData ( string vectorVar ) : void
writeIntResult ( string matName, int row, int col, int val ) : void

Method Details

HandleSingleMatrixElement() public method

public HandleSingleMatrixElement ( AssignmentOperationElement element ) : void
element AssignmentOperationElement
return void

InterpreterVisitor() public method

public InterpreterVisitor ( ) : System
return System

PerformVectorSingleElementOperation() public method

public PerformVectorSingleElementOperation ( VectorElement temp ) : void
temp VectorElement
return void

VisitAdditionOperationElement() public method

public VisitAdditionOperationElement ( AdditiveElement element ) : void
element AdditiveElement
return void

VisitAssignmentOperationElement() public method

public VisitAssignmentOperationElement ( AssignmentOperationElement element ) : void
element AssignmentOperationElement
return void

VisitBracketElement() public method

public VisitBracketElement ( BracketElement element ) : void
element BracketElement
return void

VisitCommentElement() public method

public VisitCommentElement ( CommentElement element ) : void
element CommentElement
return void

VisitDeleteElement() public method

public VisitDeleteElement ( DeleteVariable element ) : void
element DeleteVariable
return void

VisitDotProductElement() public method

public VisitDotProductElement ( DotProductElement element ) : void
element DotProductElement
return void

VisitDoubleElement() public method

public VisitDoubleElement ( DoubleElement element ) : void
element DoubleElement
return void

VisitForStatementElement() public method

public VisitForStatementElement ( ForStatementElement element ) : void
element ForStatementElement
return void

VisitFunctionCallElement() public method

public VisitFunctionCallElement ( FunctionCallElement element ) : void
element FunctionCallElement
return void

VisitFunctionElement() public method

public VisitFunctionElement ( FunctionElement element ) : void
element FunctionElement
return void

VisitIfStatementElement() public method

public VisitIfStatementElement ( IfStatementElement element ) : void
element IfStatementElement
return void

VisitIntegerElement() public method

public VisitIntegerElement ( IntegerElement element ) : void
element IntegerElement
return void

VisitMatrixElement() public method

public VisitMatrixElement ( MatrixVariableDeclaration element ) : void
element MatrixVariableDeclaration
return void

VisitMatrixReference() public method

public VisitMatrixReference ( MatrixReference element ) : void
element MatrixReference
return void

VisitMatrixSingleElement() public method

public VisitMatrixSingleElement ( MatrixElement element ) : void
element MatrixElement
return void

VisitMatrixTransposeElement() public method

public VisitMatrixTransposeElement ( MatrixTranspose element ) : void
element MatrixTranspose
return void

VisitMultiplicationElement() public method

public VisitMultiplicationElement ( MultiplicationElement element ) : void
element MultiplicationElement
return void

VisitParallelForElement() public method

public VisitParallelForElement ( ParallelForElement element ) : void
element ParallelForElement
return void

VisitPlotFunctionElement() public method

public VisitPlotFunctionElement ( PlotFunctionElement element ) : void
element PlotFunctionElement
return void

VisitPrintOperationElement() public method

public VisitPrintOperationElement ( PrintOperationElement element ) : void
element PrintOperationElement
return void

VisitReturnElement() public method

public VisitReturnElement ( ReturnElement element ) : void
element ReturnElement
return void

VisitScalarArgument() public method

public VisitScalarArgument ( ScalarArgument element ) : void
element ScalarArgument
return void

VisitStringElement() public method

public VisitStringElement ( StringElement element ) : void
element StringElement
return void

VisitStructAssignment() public method

public VisitStructAssignment ( StructAssignDeclaration element ) : void
element StructAssignDeclaration
return void

VisitStructDeclaration() public method

public VisitStructDeclaration ( StructDeclaration element ) : void
element StructDeclaration
return void

VisitStructObject() public method

public VisitStructObject ( StructObjectDeclaration element ) : void
element StructObjectDeclaration
return void

VisitStructVar() public method

public VisitStructVar ( ScalarVariableDeclaration element ) : void
element ScalarVariableDeclaration
return void

VisitSubtractionElement() public method

public VisitSubtractionElement ( SubtractionElement element ) : void
element SubtractionElement
return void

VisitVariableElement() public method

public VisitVariableElement ( VariableElement element ) : void
element VariableElement
return void

VisitVectorElement() public method

public VisitVectorElement ( VectorVariableDeclaration element ) : void
element VectorVariableDeclaration
return void

VisitVectorReference() public method

public VisitVectorReference ( VectorReference element ) : void
element VectorReference
return void

VisitVectorSingleElement() public method

public VisitVectorSingleElement ( VectorElement element ) : void
element VectorElement
return void

clearMap() public method

public clearMap ( ) : void
return void

getIfElement() public method

public getIfElement ( Element element ) : String
element Element
return String

getMap() public method

public getMap ( ) : Hashtable
return System.Collections.Hashtable

getTopOfStack_Matrix() public method

public getTopOfStack_Matrix ( ) : Object
return Object

map_contains_matrix() public method

public map_contains_matrix ( string key ) : bool
key string
return bool

result() public method

public result ( string coremsg ) : void
coremsg string
return void

sendres() public method

public sendres ( int code, string errormsg ) : void
code int
errormsg string
return void

setBySwarm() public method

public setBySwarm ( ) : void
return void

setPlotObj() public method

public setPlotObj ( PlotReceiver pr ) : void
pr PlotReceiver
return void