• Preparing search index...
  • The search index is not available
SPeCS Packages Documentation
  • SPeCS Packages Documentation
  • @specs-feup/flow
  • graph/Graph
  • Graph
  • Case

Function Case

  • Case<D, S, G>(GraphType, callback): _Case<D, S, G>
  • Represents a case in a BaseGraph.Class.switch.

    Type Parameters

    • D extends BaseGraph.Data
    • S extends BaseGraph.ScratchData
    • G extends BaseGraph.Class<D, S>

    Parameters

    • GraphType: Graph<D, S, G>

      The graph type to match.

    • callback: ((g: G) => void)

      The call back if the graph type matches.

        • (g): void
        • Parameters

          • g: G

          Returns void

    Returns _Case<D, S, G>

    An object to be used in BaseGraph.Class.switch.

    • Defined in lara-flow/src/graph/Graph.ts:164

Settings

Member Visibility
SPeCS Packages Documentation
  • Loading...

Generated using TypeDoc