Class: DataStructuresRMolinari::CSegmentTreeTemplate
- Inherits:
-
Object
- Object
- DataStructuresRMolinari::CSegmentTreeTemplate
- Defined in:
- lib/data_structures_rmolinari/c_segment_tree_template_impl.rb
Overview
The underlying functionality of the Segment Tree data type, implemented in C as a Ruby extension.
See SegmentTreeTemplate for more information.
Instance Method Summary collapse
-
#initialize(combine:, single_cell_array_val:, size:, identity:) ⇒ CSegmentTreeTemplate
constructor
A new instance of CSegmentTreeTemplate.
Constructor Details
#initialize(combine:, single_cell_array_val:, size:, identity:) ⇒ CSegmentTreeTemplate
Returns a new instance of CSegmentTreeTemplate.
11 12 13 14 |
# File 'lib/data_structures_rmolinari/c_segment_tree_template_impl.rb', line 11 def initialize(combine:, single_cell_array_val:, size:, identity:) # having sorted out the keyword arguments, pass them more easily to the C layer. c_initialize(combine, single_cell_array_val, size, identity) end |