====== For Each Category ====== ===== Description ===== Container that executes the functors it contains once for every class or category present in a categorical map. ===== Inputs ===== ^ Name ^ Type ^ Description ^ | Map | [[Categorical Map Type]] | Map of classes or categories the contained functors are executed for. | ===== Optional Inputs ===== None. ===== Outputs ===== None. ===== Internal Outputs ===== ^ Name ^ Type ^ Description ^ | Step | [[Integer Value Type]] | Category being processed in the current execution. | ===== Group ===== [[Functor List#Control | Control]] ===== Notes ===== Executions for different categories can run simultaneously when there is no dependency between them. When Map has zero categories and a result produced by the contained functors is used outside the container, connect a matching [[functor_list#junction|junction]] after the container, so a value still reaches the rest of the model if there are no categories to process. See Lesson 14, "Using For Each Category and Region Manager," for a practical example of this functor. ===== Internal Name ===== ForEachCategory ===== Usage examples ===== See practical examples of this functor in [[lesson_14|Lesson 14: Using For Each Category and Region Manager]]