class_docstr: Simple, type-checked, dict-like container for holding repeated scalars.
class_docstr_tok: ["Simple",",","type-checked",",","dict-like","container","for","holding","repeated","scalars","."]
docstr: Args:
    message_listener: A MessageListener implementation.
      The ScalarMap will call this object's Modified() method when it
      is modified.
    key_checker: A type_checkers.ValueChecker instance to run on keys
      inserted into this container.
    value_checker: A type_checkers.ValueChecker instance to run on values
      inserted into this container.
    entry_descriptor: The MessageDescriptor of a map entry: key and value.
docstr_tok: ["Args",":","message_listener",":","A","MessageListener","implementation",".","The","ScalarMap","will","call","this","object","'s","Modified","(",")","method","when","it","is","modified",".","key_checker",":","A","type_checkers.ValueChecker","instance","to","run","on","keys","inserted","into","this","container",".","value_checker",":","A","type_checkers.ValueChecker","instance","to","run","on","values","inserted","into","this","container",".","entry_descriptor",":","The","MessageDescriptor","of","a","map","entry",":","key","and","value","."]
code: def __init__(
      self,
      message_listener,
      key_checker,
      value_checker,
      entry_descriptor,
  ):
      """
      Args:
        message_listener: A MessageListener implementation.
          The ScalarMap will call this object's Modified() method when it
          is modified.
        key_checker: A type_checkers.ValueChecker instance to run on keys
          inserted into this container.
        value_checker: A type_checkers.ValueChecker instance to run on values
          inserted into this container.
        entry_descriptor: The MessageDescriptor of a map entry: key and value.
      """
      self._message_listener = message_listener
      self._key_checker = key_checker
      self._value_checker = value_checker
      self._entry_descriptor = entry_descriptor
      self._values = {}
  
imports: import collections
  import sys
label_desc: Use image node_id 1 to create a new ScalarMap object from inherited base classes: MutableMapping with example: obj = ScalarMap(message_listener, key_checker, value_checker, entry_descriptor)