class Ikra::Types::LocationAwareArrayType

Attributes

location[R]

Determines if the array is allocated on the host or on the device

Public Class Methods

new(inner_type, location) click to toggle source
# File lib/types/types/array_type.rb, line 63
def initialize(inner_type, location)
    @inner_type = inner_type
    @location = location
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method Ikra::Types::ArrayType#==
# File lib/types/types/array_type.rb, line 59
def ==(other)
    return super && self.location == other.location
end
to_c_type() click to toggle source
# File lib/types/types/array_type.rb, line 68
def to_c_type
    return "variable_size_array_t"
end