Class: AdLint::Cc1::StandardTypeCatalog
- Inherits:
-
Object
- Object
- AdLint::Cc1::StandardTypeCatalog
- Defined in:
- lib/adlint/cc1/type.rb
Instance Attribute Summary collapse
-
#char_t ⇒ Object
readonly
Returns the value of attribute char_t.
-
#double_t ⇒ Object
readonly
Returns the value of attribute double_t.
-
#extended_big_int_t ⇒ Object
readonly
Returns the value of attribute extended_big_int_t.
-
#float_t ⇒ Object
readonly
Returns the value of attribute float_t.
-
#int_t ⇒ Object
readonly
Returns the value of attribute int_t.
-
#long_double_t ⇒ Object
readonly
Returns the value of attribute long_double_t.
-
#long_int_t ⇒ Object
readonly
Returns the value of attribute long_int_t.
-
#long_long_int_t ⇒ Object
readonly
Returns the value of attribute long_long_int_t.
-
#long_long_t ⇒ Object
readonly
Returns the value of attribute long_long_t.
-
#long_t ⇒ Object
readonly
Returns the value of attribute long_t.
-
#short_int_t ⇒ Object
readonly
Returns the value of attribute short_int_t.
-
#short_t ⇒ Object
readonly
Returns the value of attribute short_t.
-
#signed_char_t ⇒ Object
readonly
Returns the value of attribute signed_char_t.
-
#signed_int_t ⇒ Object
readonly
Returns the value of attribute signed_int_t.
-
#signed_long_int_t ⇒ Object
readonly
Returns the value of attribute signed_long_int_t.
-
#signed_long_long_int_t ⇒ Object
readonly
Returns the value of attribute signed_long_long_int_t.
-
#signed_long_long_t ⇒ Object
readonly
Returns the value of attribute signed_long_long_t.
-
#signed_long_t ⇒ Object
readonly
Returns the value of attribute signed_long_t.
-
#signed_short_int_t ⇒ Object
readonly
Returns the value of attribute signed_short_int_t.
-
#signed_short_t ⇒ Object
readonly
Returns the value of attribute signed_short_t.
-
#signed_t ⇒ Object
readonly
Returns the value of attribute signed_t.
-
#unsigned_char_t ⇒ Object
readonly
Returns the value of attribute unsigned_char_t.
-
#unsigned_int_t ⇒ Object
readonly
Returns the value of attribute unsigned_int_t.
-
#unsigned_long_int_t ⇒ Object
readonly
Returns the value of attribute unsigned_long_int_t.
-
#unsigned_long_long_int_t ⇒ Object
readonly
Returns the value of attribute unsigned_long_long_int_t.
-
#unsigned_long_long_t ⇒ Object
readonly
Returns the value of attribute unsigned_long_long_t.
-
#unsigned_long_t ⇒ Object
readonly
Returns the value of attribute unsigned_long_t.
-
#unsigned_short_int_t ⇒ Object
readonly
Returns the value of attribute unsigned_short_int_t.
-
#unsigned_short_t ⇒ Object
readonly
Returns the value of attribute unsigned_short_t.
-
#unsigned_t ⇒ Object
readonly
Returns the value of attribute unsigned_t.
-
#void_t ⇒ Object
readonly
Returns the value of attribute void_t.
Instance Method Summary collapse
- #all_types ⇒ Object
-
#initialize(type_tbl) ⇒ StandardTypeCatalog
constructor
A new instance of StandardTypeCatalog.
- #lookup_by_type_specifiers(type_specs) ⇒ Object
Constructor Details
#initialize(type_tbl) ⇒ StandardTypeCatalog
Returns a new instance of StandardTypeCatalog.
7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 |
# File 'lib/adlint/cc1/type.rb', line 7190 def initialize(type_tbl) @types = {} install_char_t_family(type_tbl) install_short_t_family(type_tbl) install_int_t_family(type_tbl) install_long_t_family(type_tbl) install_long_long_t_family(type_tbl) install_float_t(type_tbl) install_double_t(type_tbl) install_long_double_t(type_tbl) install_void_t(type_tbl) install_extended_bit_int_t(type_tbl) end |
Instance Attribute Details
#char_t ⇒ Object (readonly)
Returns the value of attribute char_t.
7207 7208 7209 |
# File 'lib/adlint/cc1/type.rb', line 7207 def char_t @char_t end |
#double_t ⇒ Object (readonly)
Returns the value of attribute double_t.
7234 7235 7236 |
# File 'lib/adlint/cc1/type.rb', line 7234 def double_t @double_t end |
#extended_big_int_t ⇒ Object (readonly)
Returns the value of attribute extended_big_int_t.
7237 7238 7239 |
# File 'lib/adlint/cc1/type.rb', line 7237 def extended_big_int_t @extended_big_int_t end |
#float_t ⇒ Object (readonly)
Returns the value of attribute float_t.
7233 7234 7235 |
# File 'lib/adlint/cc1/type.rb', line 7233 def float_t @float_t end |
#int_t ⇒ Object (readonly)
Returns the value of attribute int_t.
7216 7217 7218 |
# File 'lib/adlint/cc1/type.rb', line 7216 def int_t @int_t end |
#long_double_t ⇒ Object (readonly)
Returns the value of attribute long_double_t.
7235 7236 7237 |
# File 'lib/adlint/cc1/type.rb', line 7235 def long_double_t @long_double_t end |
#long_int_t ⇒ Object (readonly)
Returns the value of attribute long_int_t.
7224 7225 7226 |
# File 'lib/adlint/cc1/type.rb', line 7224 def long_int_t @long_int_t end |
#long_long_int_t ⇒ Object (readonly)
Returns the value of attribute long_long_int_t.
7230 7231 7232 |
# File 'lib/adlint/cc1/type.rb', line 7230 def long_long_int_t @long_long_int_t end |
#long_long_t ⇒ Object (readonly)
Returns the value of attribute long_long_t.
7227 7228 7229 |
# File 'lib/adlint/cc1/type.rb', line 7227 def long_long_t @long_long_t end |
#long_t ⇒ Object (readonly)
Returns the value of attribute long_t.
7221 7222 7223 |
# File 'lib/adlint/cc1/type.rb', line 7221 def long_t @long_t end |
#short_int_t ⇒ Object (readonly)
Returns the value of attribute short_int_t.
7213 7214 7215 |
# File 'lib/adlint/cc1/type.rb', line 7213 def short_int_t @short_int_t end |
#short_t ⇒ Object (readonly)
Returns the value of attribute short_t.
7210 7211 7212 |
# File 'lib/adlint/cc1/type.rb', line 7210 def short_t @short_t end |
#signed_char_t ⇒ Object (readonly)
Returns the value of attribute signed_char_t.
7208 7209 7210 |
# File 'lib/adlint/cc1/type.rb', line 7208 def signed_char_t @signed_char_t end |
#signed_int_t ⇒ Object (readonly)
Returns the value of attribute signed_int_t.
7218 7219 7220 |
# File 'lib/adlint/cc1/type.rb', line 7218 def signed_int_t @signed_int_t end |
#signed_long_int_t ⇒ Object (readonly)
Returns the value of attribute signed_long_int_t.
7225 7226 7227 |
# File 'lib/adlint/cc1/type.rb', line 7225 def signed_long_int_t @signed_long_int_t end |
#signed_long_long_int_t ⇒ Object (readonly)
Returns the value of attribute signed_long_long_int_t.
7231 7232 7233 |
# File 'lib/adlint/cc1/type.rb', line 7231 def signed_long_long_int_t @signed_long_long_int_t end |
#signed_long_long_t ⇒ Object (readonly)
Returns the value of attribute signed_long_long_t.
7228 7229 7230 |
# File 'lib/adlint/cc1/type.rb', line 7228 def signed_long_long_t @signed_long_long_t end |
#signed_long_t ⇒ Object (readonly)
Returns the value of attribute signed_long_t.
7222 7223 7224 |
# File 'lib/adlint/cc1/type.rb', line 7222 def signed_long_t @signed_long_t end |
#signed_short_int_t ⇒ Object (readonly)
Returns the value of attribute signed_short_int_t.
7214 7215 7216 |
# File 'lib/adlint/cc1/type.rb', line 7214 def signed_short_int_t @signed_short_int_t end |
#signed_short_t ⇒ Object (readonly)
Returns the value of attribute signed_short_t.
7211 7212 7213 |
# File 'lib/adlint/cc1/type.rb', line 7211 def signed_short_t @signed_short_t end |
#signed_t ⇒ Object (readonly)
Returns the value of attribute signed_t.
7217 7218 7219 |
# File 'lib/adlint/cc1/type.rb', line 7217 def signed_t @signed_t end |
#unsigned_char_t ⇒ Object (readonly)
Returns the value of attribute unsigned_char_t.
7209 7210 7211 |
# File 'lib/adlint/cc1/type.rb', line 7209 def unsigned_char_t @unsigned_char_t end |
#unsigned_int_t ⇒ Object (readonly)
Returns the value of attribute unsigned_int_t.
7220 7221 7222 |
# File 'lib/adlint/cc1/type.rb', line 7220 def unsigned_int_t @unsigned_int_t end |
#unsigned_long_int_t ⇒ Object (readonly)
Returns the value of attribute unsigned_long_int_t.
7226 7227 7228 |
# File 'lib/adlint/cc1/type.rb', line 7226 def unsigned_long_int_t @unsigned_long_int_t end |
#unsigned_long_long_int_t ⇒ Object (readonly)
Returns the value of attribute unsigned_long_long_int_t.
7232 7233 7234 |
# File 'lib/adlint/cc1/type.rb', line 7232 def unsigned_long_long_int_t @unsigned_long_long_int_t end |
#unsigned_long_long_t ⇒ Object (readonly)
Returns the value of attribute unsigned_long_long_t.
7229 7230 7231 |
# File 'lib/adlint/cc1/type.rb', line 7229 def unsigned_long_long_t @unsigned_long_long_t end |
#unsigned_long_t ⇒ Object (readonly)
Returns the value of attribute unsigned_long_t.
7223 7224 7225 |
# File 'lib/adlint/cc1/type.rb', line 7223 def unsigned_long_t @unsigned_long_t end |
#unsigned_short_int_t ⇒ Object (readonly)
Returns the value of attribute unsigned_short_int_t.
7215 7216 7217 |
# File 'lib/adlint/cc1/type.rb', line 7215 def unsigned_short_int_t @unsigned_short_int_t end |
#unsigned_short_t ⇒ Object (readonly)
Returns the value of attribute unsigned_short_t.
7212 7213 7214 |
# File 'lib/adlint/cc1/type.rb', line 7212 def unsigned_short_t @unsigned_short_t end |
#unsigned_t ⇒ Object (readonly)
Returns the value of attribute unsigned_t.
7219 7220 7221 |
# File 'lib/adlint/cc1/type.rb', line 7219 def unsigned_t @unsigned_t end |
#void_t ⇒ Object (readonly)
Returns the value of attribute void_t.
7236 7237 7238 |
# File 'lib/adlint/cc1/type.rb', line 7236 def void_t @void_t end |
Instance Method Details
#all_types ⇒ Object
7244 7245 7246 |
# File 'lib/adlint/cc1/type.rb', line 7244 def all_types @types.each_value end |
#lookup_by_type_specifiers(type_specs) ⇒ Object
7239 7240 7241 7242 |
# File 'lib/adlint/cc1/type.rb', line 7239 def lookup_by_type_specifiers(type_specs) type_name = type_specs.map { |ts| ts.to_s }.sort.join(" ") @types[type_name] end |