class Inline::C::Type
Attributes
c_type[R]
ruby_type_class[R]
Public Class Methods
new(c_type, ruby_type_class)
click to toggle source
# File lib/inline_acceleration.rb, line 327 def initialize(c_type, ruby_type_class) @c_type = c_type @ruby_type_class = ruby_type_class end
Public Instance Methods
c_transfer_type()
click to toggle source
# File lib/inline_acceleration.rb, line 346 def c_transfer_type is_simple_type? ? c_type : TRANSFER_TYPE end
ruby_type_conversion()
click to toggle source
# File lib/inline_acceleration.rb, line 350 def ruby_type_conversion is_simple_type? ? '' : "#{ruby_type_class.name}.new" end
void?()
click to toggle source
# File lib/inline_acceleration.rb, line 342 def void? c_type == 'void' end