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
Determines whether the specified Object is equal to the current Object.
(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.

Examples

CopyC#
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

Properties

  Name Description
NumOps
The Number of Operators in the Operator Table

See Also