The OperatorTable type exposes the following members.
Constructors
Name | Description | |
---|---|---|
OperatorTable |
Initializes a new instance of the OperatorTable class
|
Methods
Name | Description | |
---|---|---|
AddOperator | Overloaded. | |
AppendOperator | Overloaded. | |
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetAdd | ||
GetAnd | ||
GetAssign | ||
GetCross | ||
GetDivide | ||
GetDot | ||
GetEle | ||
GetEQ | ||
GetGE | ||
GetGT | ||
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetLE | ||
GetLightWeightInstance |
|
|
GetList | ||
GetLT | ||
GetMod | ||
GetMultiply | ||
GetNE | ||
GetNop | ||
GetNot | ||
GetOperator |
Get operator by its key code. Most efficient way to get an operator.
|
|
GetOperators | ||
GetOperatorsByName |
Get the operator with a given name
|
|
GetOperatorsBySymbol |
Gets all the operators with a given symbol
|
|
GetOr | ||
GetPower | ||
GetRange | ||
GetSubtract | ||
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
GetUDivide | ||
GetUMinus | ||
GetUPlus | ||
Init | ||
InsertOperator | Overloaded. | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
RemoveOperator |
Remove an operator from the table.
|
|
ReplaceOperator |
replace an existing operator by a new one.
|
|
SetBinaryInverseOp | ||
SetDistributiveOver | ||
SetInverseOp | ||
SetPrecedenceTable |
Sets the precedence of all operators at one time. An array of arrays of
key codes of operators is used to set the table operators with the same
precedence are grouped together and listed from tighter binding to loose
binding.
ExamplesCopyC# SetPrecedenceTable(new int[][] { { OP_NEGATE, OP_UPLUS, OP_NOT }, { OP_POWER }, { OP_MULTIPLY, OP_DIVIDE, OP_MOD, OP_DOT, OP_CROSS }, { OP_ADD, OP_SUBTRACT }, { OP_LT, OP_LE, OP_GT, OP_GE }, { OP_EQ, OP_NE }, { OP_AND }, { OP_OR }, { OP_ASSIGN }, }); |
|
SetRootOp | ||
SetStandardOperatorRelations |
Sets up the standard relations between +,-,*,/
|
|
ToString |
String rep operators ordered by precedence, one per line.
(Overrides Object..::.ToString()()().) |
Fields
Name | Description | |
---|---|---|
_numOps |
The Number of Operators
|
|
baseNumOps |
Number operators in this table. Can be used by subclasses
|
|
OP_ADD | ||
OP_AND | ||
OP_ASSIGN | ||
OP_CROSS | ||
OP_DIVIDE | ||
OP_DOT | ||
OP_ELEMENT | ||
OP_EQ | ||
OP_GE | ||
OP_GT | ||
OP_LE | ||
OP_LIST | ||
OP_LT | ||
OP_MOD | ||
OP_MULTIPLY | ||
OP_NE | ||
OP_NEGATE | ||
OP_NOP | ||
OP_NOT | ||
OP_OR | ||
OP_POWER | ||
OP_RANGE | ||
OP_RECIP | ||
OP_SUBTRACT | ||
OP_UPLUS | ||
ops |
Properties
Name | Description | |
---|---|---|
NumOps |
The Number of Operators in the Operator Table
|