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 included from AbstractClass
Methods inherited from Type
#allignment, #context, from_ptr, #hash, #initialize, #kind
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.
261 262 263 |
# File 'lib/rltk/cg/type.rb', line 261 def size @length ||= Bindings.get_array_length(@ptr) end |