Class: CIntType
- Includes:
- CType
- Defined in:
- lib/tecsgen/core/ctypes.rb
Instance Method Summary collapse
-
#initialize(bit_size) ⇒ CIntType
constructor
A new instance of CIntType.
- #set_sign(sign, b_uint = false) ⇒ Object
Methods included from CType
Methods inherited from IntType
#check, #check_and_clip, #check_init, #get_bit_size, #get_max, #get_min, #get_sign, #get_type_str, #get_type_str_post, #show_tree
Methods inherited from Type
#cast, #check, #check_init, #check_struct_tag, #clear_max, #equal?, #get_ID_str, #get_bit_size, #get_original_type, #get_type_str, #has_pointer?, #has_sized_pointer?, #has_unsized_string?, #is_const?, #is_void?, #is_volatile?, #print_info, print_info_post, #print_info_post, reset_print_info, #set_qualifier, #set_scs, #show_tree
Methods inherited from Node
#cdl_error, #cdl_error2, #cdl_error3, #cdl_info, #cdl_info2, #cdl_warning, #cdl_warning2, #get_locale, #locale_str, #set_locale
Constructor Details
#initialize(bit_size) ⇒ CIntType
Returns a new instance of CIntType.
160 161 162 163 |
# File 'lib/tecsgen/core/ctypes.rb', line 160 def initialize(bit_size) # p super.class mikan super.class が Symbol だ、なぜ? super(bit_size) end |
Instance Method Details
#set_sign(sign, b_uint = false) ⇒ Object
165 166 167 168 |
# File 'lib/tecsgen/core/ctypes.rb', line 165 def set_sign(sign, b_uint = false) super(sign, b_uint) # p "CInt: set_sign: #{get_type_str} #{sign}" end |