Class: RLTK::CG::BasicIntType Abstract
- Inherits:
-
NumberType
- Object
- Type
- NumberType
- RLTK::CG::BasicIntType
- Includes:
- Filigree::AbstractClass
- Defined in:
- lib/rltk/cg/type.rb
Overview
This class is abstract.
All types that represent integers of a given width inherit from this class.
Direct Known Subclasses
Instance Attribute Summary
Attributes included from BindingClass
Instance Method Summary collapse
-
#width ⇒ Integer
Number of bits used to represent an integer type.
Methods inherited from NumberType
Methods inherited from Type
#allignment, #context, #dump, from_ptr, #hash, #initialize, #kind, #size, #to_s
Methods included from BindingClass
Constructor Details
This class inherits a constructor from RLTK::CG::Type
Instance Method Details
#width ⇒ Integer
Returns Number of bits used to represent an integer type.
147 148 149 |
# File 'lib/rltk/cg/type.rb', line 147 def width @width ||= Bindings.get_int_type_width(@ptr) end |