class AutoC::Range::ForwardRange
@abstract
Public Instance Methods
configure()
click to toggle source
Calls superclass method
AutoC::Range::InputRange#configure
# File lib/autoc/ranges.rb, line 202 def configure super copy.configure do header %{ @brief Create a copy of the range state @param[out] target range to be created @param[in] source range to be cloned This function is meant to an independent copy (a clone) of `*source` range in place of `*target`. Previous contents of `*target` is overwritten. @since 2.0 } inline_code %{ assert(target); assert(source); *target = *source; } end end
copyable?(= true)
click to toggle source
# File lib/autoc/ranges.rb, line 198 def copyable? = true private def configure super copy.configure do header %{ @brief Create a copy of the range state @param[out] target range to be created @param[in] source range to be cloned This function is meant to an independent copy (a clone) of `*source` range in place of `*target`. Previous contents of `*target` is overwritten. @since 2.0 } inline_code %{ assert(target); assert(source); *target = *source; } end end end