#!/usr/bin/env ruby fw = File.open "for_yard_product.rb", "w" fw.write <. #{ case(c) when "ESet", "EMSet" " # @yieldparam [Object] obj object pointed by an element.\n" else " # @yieldparam [Object] key object pointed by an element.\n" end } # @yieldreturn [Object] should be comparable with method, '<'. def initialize end # @return [#{c}::Iterator] Return iterator to beginning def begin end # @return [#{c}::Iterator] Return iterator to end def end end # @return [Integer] Return container size def size end # Clear content def clear end # @return [#{c}::Iterator] Return iterator to upper bound def upper_bound end # @return [#{c}::Iterator] Return iterator to lower bound def lower_bound end #{ case(c) when "ESet", "EMSet" " # @overload insert(position, obj)\n" when "EMap", "EMMap" " # @overload insert(position, key, value)\n" end } # Insert element with an object using a hint # @param [#{c}::Iterator] position Hint for the position where the element can be inserted. #{ case(c) when "ESet", "EMSet" " # @param [Object] obj Object to be pointed by the inserted elements.\n" when "EMap", "EMMap" " # @param [Object] key key object to be pointed by the inserted elements.\n" + " # @param [Object] value value object to be pointed by the inserted elements.\n" end }#{ case(c) when "ESet", "EMap" " # @return [#{c}::Iterator] An iterator pointing to either the newly inserted element or to the element that already had its equivalent in the container.\n" else " # @return [#{c}::Iterator] An iterator pointing to either the newly inserted element.\n" end }#{ case(c) when "ESet", "EMSet" " # @overload insert(obj)\n" when "EMap", "EMMap" " # @overload insert(key, value)\n" end } # Insert element with an object #{ case(c) when "ESet", "EMSet" " # @param [Object] obj key object to be pointed by the inserted elements.\n" when "EMap", "EMMap" " # @param [Object] key key object to be pointed by the inserted elements.\n" + " # @param [Object] value value object to be pointed by the inserted elements.\n" end }#{ case(c) when "ESet", "EMap" " # @return [Array] An array, with its first member set to an iterator pointing to either the newly inserted element or to the equivalent element already in the set. The second member in the array is set to true if a new element was inserted or false if an equivalent element already existed.\n" else " # @return [#{c}::Iterator] An iterator pointing to either the newly inserted element.\n" end } def insert *args end END fw.flush if c == "EMap" fw.write <