Class: RangeList::AvlTree::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/range_list/avl_tree/abstract_adapter.rb

Direct Known Subclasses

RBTreeAdapter

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/range_list/avl_tree/abstract_adapter.rb', line 23

def each(&block)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#lower_entry(key) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/range_list/avl_tree/abstract_adapter.rb', line 11

def lower_entry(key)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#put(key, value) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/range_list/avl_tree/abstract_adapter.rb', line 7

def put(key, value)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#remove(key) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/range_list/avl_tree/abstract_adapter.rb', line 19

def remove(key)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end

#sub_map(from_key, to_key) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/range_list/avl_tree/abstract_adapter.rb', line 15

def sub_map(from_key, to_key)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end