class IDL::Expression::Operation::Integer2

Constants

Applicable
NUMBER_OF_OPERANDS

Public Class Methods

suite_sign(_t, _v) click to toggle source
# File lib/ridl/expression.rb, line 154
        def Integer2.suite_sign(_t, _v)
          [[IDL::Type::LongLong, IDL::Type::ULongLong],
            [IDL::Type::Long,     IDL::Type::ULong],
            [IDL::Type::Short,    IDL::Type::UShort]
].each do |t|
            next unless t.include? _t

            return (if _v.negative? then t[0] else t[1] end)
          end
        end

Public Instance Methods

set_type() click to toggle source
# File lib/ridl/expression.rb, line 165
def set_type
  if Integer2::Applicable.include? @idltype
    @idltype = self.class.suite_sign(@idltype, @value)
  end
end