HashTable#

class HashTable(*args, **kwargs)#

Methods#

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

  • key

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

  • key

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

hash_table

classmethod find(hash_table: dict[Any, Any], predicate: Callable[[Any, Any, Any], bool], user_data: Any = None) Any | None#
Parameters:
  • hash_table

  • predicate

  • user_data

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

  • func

  • user_data

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

  • func

  • user_data

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

  • key

  • value

classmethod lookup(hash_table: dict[Any, Any], key: Any = None) Any | None#
Parameters:
  • hash_table

  • key

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

  • lookup_key

classmethod new_similar(other_hash_table: dict[Any, Any]) dict[Any, Any]#
Parameters:

other_hash_table

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

  • key

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

hash_table

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

  • key

  • value

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

hash_table