class_docstr: A set of objects.Objects instances.
  
  This class allows you to either refer to an object by name or
  iterate over all available objects.
class_docstr_tok: ["A","set","of","objects.Objects","instances",".","This","class","allows","you","to","either","refer","to","an","object","by","name","or","iterate","over","all","available","objects","."]
docstr: Add a named instance of a type
  
  A thing of a given type can be stored in the object set so that
  it can be retrieved by name later in the pipeline. This function adds
  an instance of a type to the object set.
  
  type_name - the name of the instance's type
  instance_name - the name of the instance
  instance - the instance itself
docstr_tok: ["Add","a","named","instance","of","a","type","A","thing","of","a","given","type","can","be","stored","in","the","object","set","so","that","it","can","be","retrieved","by","name","later","in","the","pipeline",".","This","function","adds","an","instance","of","a","type","to","the","object","set",".","type_name","-","the","name","of","the","instance","'s","type","instance_name","-","the","name","of","the","instance","instance","-","the","instance","itself"]
code: def add_type_instance(self, type_name, instance_name, instance):
      """Add a named instance of a type
  
      A thing of a given type can be stored in the object set so that
      it can be retrieved by name later in the pipeline. This function adds
      an instance of a type to the object set.
  
      type_name - the name of the instance's type
      instance_name - the name of the instance
      instance - the instance itself
      """
      if type_name not in self.__types_and_instances:
          self.__types_and_instances[type_name] = {}
      self.__types_and_instances[type_name][instance_name] = instance
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/object/_object_set.py
imports: from ._objects import Objects
label_desc: Use image node_id 8 for calling the ObjectSet obj's underlying member method code with example usage: obj.add_type_instance(type_name, instance_name, instance) without return types