Method: AutoC::HashSet#write_intf_types

Defined in:
lib/autoc/collection/hash_set.rb

#write_intf_types(stream) ⇒ Object



165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/autoc/collection/hash_set.rb', line 165

def write_intf_types(stream)
  super
  @list.write_intf_types(stream)
  stream << %$
    typedef struct #{type} #{type};
    typedef struct #{it} #{it};
    struct #{type} {
      #{@list.type_ref} buckets;
      size_t bucket_count, min_bucket_count;
      size_t size, min_size, max_size;
      unsigned min_fill, max_fill, capacity_multiplier; /* ?*1e-2 */
    };
    struct #{it} {
      #{type_ref} set;
      size_t bucket_index;
      #{@list.it} it;
    };
  $
end