class AutoC::HashMap::HashSet::AutoC::HashMap::HashSet::HashMap::List

Attributes

_index[R]

Public Class Methods

new(*args, **kws) click to toggle source
Calls superclass method
# File lib/autoc/hash_map.rb, line 236
def initialize(*args, **kws)
  super
  _map = _master._master # this list is a subcomponent of a set which is in turn a subcomponent of the map
  @_index = _map.index
end

Private Instance Methods

configure() click to toggle source
Calls superclass method
# File lib/autoc/hash_map.rb, line 244
def configure
  super
  method(:int, :_find_index_node, { target: const_rvalue, index: _index.const_rvalue, prev_p: _node_pp, curr_p: _node_pp }, constraint:-> { _index.comparable? }).configure do
    # Locate node satisfying default element equality condition, return this and previous nodes
    code _locate_node_equal(_index.equal.('curr->element.index', index))
  end
  method(:int, :_remove_index_node, { target: rvalue, index: _index.const_rvalue }, constraint:-> { _index.comparable? }).configure do
    code _remove_first(_find_index_node.(target, index, :prev, :curr))
  end
end