Returns the number of unique product-shape pairs.
The count of unique product-shape pairs.
Adds a mapping between a product and its product definition to a shape. If the product def share pair does not already exist, it is added to both the product-to-shapes and shape-to-products maps, and the internal count is incremented.
The local ID of the product.
The local ID of the product definition.
The local ID of the shape.
if the pair was newly added; false if the pair already existed.
Get the s for a shape, given the shape local ID.
The local ID of the shape.
The local IDs of the product definition associated with the shape, or undefined if no product definition is associated with the shape.
Maintains a bidirectional mapping between product IDs and shape IDs.
This class allows efficient querying of all shapes associated with a product, all products associated with a shape, and iteration over all unique product-shape pairs.