Class: Ikra::Types::LocationAwareArrayType
- Defined in:
- lib/types/types/array_type.rb
Direct Known Subclasses
LocationAwareFixedSizeArrayType, LocationAwareVariableSizeArrayType
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Determines if the array is allocated on the host or on the device.
Attributes inherited from ArrayType
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(inner_type, location) ⇒ LocationAwareArrayType
constructor
A new instance of LocationAwareArrayType.
- #to_c_type ⇒ Object
Methods inherited from ArrayType
new, new_original, #to_ffi_type, #to_ruby_type, #to_s
Methods included from RubyType
#class_id, #eql?, #hash, #inspect, #is_primitive?, #is_union_type?, #should_generate_self_arg?, #to_array_type, #to_ruby_type, #to_str, #to_union_type
Constructor Details
#initialize(inner_type, location) ⇒ LocationAwareArrayType
Returns a new instance of LocationAwareArrayType.
63 64 65 66 |
# File 'lib/types/types/array_type.rb', line 63 def initialize(inner_type, location) @inner_type = inner_type @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Determines if the array is allocated on the host or on the device
57 58 59 |
# File 'lib/types/types/array_type.rb', line 57 def location @location end |