Module: AutoC::Iterators::Bidirectional

Included in:
Queue, TreeSet, Vector
Defined in:
lib/autoc/collection/iterator.rb

Overview

Instance Method Summary collapse

Instance Method Details

#write_intf_decls(stream, declare, define) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/autoc/collection/iterator.rb', line 23

def write_intf_decls(stream, declare, define)
  super
  stream << %$
    #{declare} void #{itCtor}(#{it_ref}, #{type_ref});
    #define #{itCtor}(self, type) #{itCtorEx}(self, type, 1)
    #{declare} void #{itCtorEx}(#{it_ref}, #{type_ref}, int);
    #{declare} int #{itMove}(#{it_ref});
    #{declare} #{element.type} #{itGet}(#{it_ref});
  $
end