Class: EnumType
Overview
mikan
Direct Known Subclasses
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(bit_size) ⇒ EnumType
constructor
- @bit_size
- -1: enum 8, 16, 32, 64, 128 @element
- @element_val
-
[].
- #show_tree(indent) ⇒ Object
Methods inherited from Type
#cast, #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
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) ⇒ EnumType
- @bit_size
-
-1: enum
8, 16, 32, 64, 128
@element:: []
@element_val:: []
710 711 712 713 |
# File 'lib/tecsgen/core/types.rb', line 710 def initialize(bit_size) super() @bit_size = bit_size end |
Instance Method Details
#check ⇒ Object
715 716 717 |
# File 'lib/tecsgen/core/types.rb', line 715 def check # mikan enum check end |
#show_tree(indent) ⇒ Object
719 720 721 722 723 724 |
# File 'lib/tecsgen/core/types.rb', line 719 def show_tree(indent) indent.times { print " " } puts "EnumType bit_size=#{@bit_size} qualifier=#{@qualifier} #{locale_str}" super(indent + 1) # mikan element end |