C# Class Rhino.Tools.Idswitch.SwitchGenerator

Mostra file Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
GenerateSwitch ( IdValuePair pairs, string default_value ) : void
GenerateSwitch ( string pairs, string default_value ) : void
GetCodePrinter ( ) : CodePrinter
GetReporter ( ) : ToolErrorReporter
GetSourceFileName ( ) : string
SetCodePrinter ( CodePrinter value ) : void
SetReporter ( ToolErrorReporter value ) : void
SetSourceFileName ( string value ) : void

Private Methods

Method Description
Bigger ( IdValuePair a, IdValuePair b, int comparator ) : bool
Check_all_is_different ( int begin, int end ) : void
Count_different_chars ( int begin, int end, int column ) : int
Count_different_lengths ( int begin, int end ) : int
Find_max_different_column ( int begin, int end, int L ) : int
Generate_body ( int begin, int end, int indent_level ) : void
Generate_length_switch ( int begin, int end, int indent_level ) : void
Generate_letter_switch ( int begin, int end, int indent_level, bool label_was_defined, bool inside_if ) : void
Generate_letter_switch_r ( int begin, int end, int L, int indent_level, bool label_was_defined, bool inside_if ) : bool
Heap4Sort ( IdValuePair array, int offset, int size, int comparator ) : void
Heapify4 ( IdValuePair array, int offset, int size, int i, int comparator ) : void
MakeHeap4 ( IdValuePair array, int offset, int size, int comparator ) : void
On_same_pair_fail ( IdValuePair a, IdValuePair b ) : EvaluatorException
Sort_pairs ( int begin, int end, int comparator ) : void

Method Details

GenerateSwitch() public method

public GenerateSwitch ( IdValuePair pairs, string default_value ) : void
pairs IdValuePair
default_value string
return void

GenerateSwitch() public method

public GenerateSwitch ( string pairs, string default_value ) : void
pairs string
default_value string
return void

GetCodePrinter() public method

public GetCodePrinter ( ) : CodePrinter
return CodePrinter

GetReporter() public method

public GetReporter ( ) : ToolErrorReporter
return Rhino.Tools.ToolErrorReporter

GetSourceFileName() public method

public GetSourceFileName ( ) : string
return string

SetCodePrinter() public method

public SetCodePrinter ( CodePrinter value ) : void
value CodePrinter
return void

SetReporter() public method

public SetReporter ( ToolErrorReporter value ) : void
value Rhino.Tools.ToolErrorReporter
return void

SetSourceFileName() public method

public SetSourceFileName ( string value ) : void
value string
return void