Class: RLTK::CG::ArrayType
- Inherits:
-
SimpleAggregateType
- Object
- Type
- AggregateType
- SimpleAggregateType
- RLTK::CG::ArrayType
- Defined in:
- lib/rltk/cg/type.rb
Overview
A Type describing an array that holds objects of a single given type.
Instance Attribute Summary
Attributes included from BindingClass
Instance Method Summary collapse
-
#size ⇒ Integer
(also: #length)
Number of elements in this array type.
Methods inherited from SimpleAggregateType
Methods inherited from Type
#allignment, #context, #dump, from_ptr, #hash, #initialize, #kind, #to_s
Methods included from BindingClass
Constructor Details
This class inherits a constructor from RLTK::CG::SimpleAggregateType
Instance Method Details
#size ⇒ Integer Also known as: length
Returns Number of elements in this array type.
305 306 307 |
# File 'lib/rltk/cg/type.rb', line 305 def size @length ||= Bindings.get_array_length(@ptr) end |