Class: RLTK::CG::BasicIntType Abstract
- Inherits:
-
NumberType
- Object
- Type
- NumberType
- RLTK::CG::BasicIntType
- Includes:
- 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 included from AbstractClass
Methods inherited from NumberType
Methods inherited from Type
#allignment, #context, from_ptr, #hash, #initialize, #kind, #size
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.
132 133 134 |
# File 'lib/rltk/cg/type.rb', line 132 def width @width ||= Bindings.get_int_type_width(@ptr) end |