HashTable#

class HashTable(*args, **kwargs)#

Methods#

class HashTable
add(hash_table: dict[None, None], key: None) bool#
Parameters:
  • hash_table

  • key

contains(hash_table: dict[None, None], key: None) bool#
Parameters:
  • hash_table

  • key

destroy(hash_table: dict[None, None]) None#
Parameters:

hash_table

find(hash_table: dict[None, None], predicate: Callable[[...], bool], *user_data: Any) None#
Parameters:
  • hash_table

  • predicate

  • user_data

foreach(hash_table: dict[None, None], func: Callable[[...], None], *user_data: Any) None#
Parameters:
  • hash_table

  • func

  • user_data

foreach_remove(hash_table: dict[None, None], func: Callable[[...], bool], *user_data: Any) int#
Parameters:
  • hash_table

  • func

  • user_data

insert(hash_table: dict[None, None], key: None, value: None) bool#
Parameters:
  • hash_table

  • key

  • value

lookup(hash_table: dict[None, None], key: None) None#
Parameters:
  • hash_table

  • key

lookup_extended(hash_table: dict[None, None], lookup_key: None) tuple[bool, None, None]#
Parameters:
  • hash_table

  • lookup_key

new_similar(other_hash_table: dict[None, None]) dict[None, None]#
Parameters:

other_hash_table

remove(hash_table: dict[None, None], key: None) bool#
Parameters:
  • hash_table

  • key

remove_all(hash_table: dict[None, None]) None#
Parameters:

hash_table

replace(hash_table: dict[None, None], key: None, value: None) bool#
Parameters:
  • hash_table

  • key

  • value

size(hash_table: dict[None, None]) int#
Parameters:

hash_table