Class: IDL::Expression::Operation::UnaryNot
- Inherits:
-
Unary
- Object
- IDL::Expression
- IDL::Expression::Operation
- Unary
- IDL::Expression::Operation::UnaryNot
- Defined in:
- lib/ridl/expression.rb
Constant Summary collapse
- Applicable =
Integer2::Applicable
Constants inherited from Unary
IDL::Expression::Operation::Unary::NUMBER_OF_OPERANDS
Constants inherited from IDL::Expression::Operation
Instance Attribute Summary
Attributes inherited from IDL::Expression::Operation
Attributes inherited from IDL::Expression
Instance Method Summary collapse
Methods inherited from IDL::Expression::Operation
#initialize, #instantiate, #is_template?, #set_type, suite_type
Methods inherited from IDL::Expression
#instantiate, #is_template?, #typename
Constructor Details
This class inherits a constructor from IDL::Expression::Operation
Instance Method Details
#calculate(op) ⇒ Object
227 228 229 230 231 232 233 |
# File 'lib/ridl/expression.rb', line 227 def calculate(op) if @idltype.is_unsigned? (2**@idltype.bits - 1) - op else ~op end end |