Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents the type of a Mir language operator. More...
#include <omScriptingMirOperatorType.h>
Public Types | |
enum | Enum { ISA, CAST, NEW, ADD, ADD_ASSIGN, SUBTRACT, SUBTRACT_ASSIGN, MULTIPLY, MULTIPLY_ASSIGN, DIVIDE, DIVIDE_ASSIGN, MODULUS, MODULUS_ASSIGN, POWER, ASSIGN, AND, AND_ASSIGN, OR, OR_ASSIGN, XOR, XOR_ASSIGN, IDENTICAL, NOT_IDENTICAL, EQUAL, NOT_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, POSITIVE, INCREMENT, NEGATIVE, DECREMENT, NOT, HASH, STRINGIFY, COPY, ARRAY_ACCESS, FUNCTION_CALL } |
An enum that specifies the different kinds of operators in the Mir language. More... | |
Public Member Functions | |
OperatorType (Enum newType) | |
Create a new operator type with the specified operator type enum value. More... | |
Bool | isUnary () const |
Return whether or not this operator type represents an operator with only one expression operand. More... | |
Bool | isPrefixUnary () const |
Return whether or not this operator type represents a unary operator that is a prefix operator. More... | |
Bool | isPostfixUnary () const |
Return whether or not this operator type represents a unary operator that is a postfix operator. More... | |
Bool | isBinary () const |
Return whether or not this operator type represents an operator with two expression operands. More... | |
String | getSpelling () const |
Return the string spelling of this operator. More... | |
operator Enum () const | |
Convert this operator type to an enum value. More... | |
A class that represents the type of a Mir language operator.
An enum that specifies the different kinds of operators in the Mir language.
|
inline |
Create a new operator type with the specified operator type enum value.
Bool om::scripting::mir::lang::OperatorType::isUnary | ( | ) | const |
Return whether or not this operator type represents an operator with only one expression operand.
Bool om::scripting::mir::lang::OperatorType::isPrefixUnary | ( | ) | const |
Return whether or not this operator type represents a unary operator that is a prefix operator.
Bool om::scripting::mir::lang::OperatorType::isPostfixUnary | ( | ) | const |
Return whether or not this operator type represents a unary operator that is a postfix operator.
Bool om::scripting::mir::lang::OperatorType::isBinary | ( | ) | const |
Return whether or not this operator type represents an operator with two expression operands.
String om::scripting::mir::lang::OperatorType::getSpelling | ( | ) | const |
Return the string spelling of this operator.
|
inline |
Convert this operator type to an enum value.