This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>CostDomain (infer.Costlib.CostDomain)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.0"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">Costlib</a>» CostDomain</nav><h1>Module <code>Costlib.CostDomain</code></h1></header><divclass="spec module"id="module-F"><ahref="#module-F"class="anchor"></a><code><spanclass="keyword">module</span> F = Stdlib.Format</code></div><divclass="spec module"id="module-BasicCost"><ahref="#module-BasicCost"class="anchor"></a><code><spanclass="keyword">module</span><ahref="BasicCost/index.html">BasicCost</a> : <spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></div><divclass="spec module"id="module-BasicCostWithReason"><ahref="#module-BasicCostWithReason"class="anchor"></a><code><spanclass="keyword">module</span><ahref="BasicCostWithReason/index.html">BasicCostWithReason</a> : <spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></div><divclass="spec module"id="module-VariantCostMap"><ahref="#module-VariantCostMap"class="anchor"></a><code><spanclass="keyword">module</span><ahref="VariantCostMap/index.html">VariantCostMap</a> : <spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></div><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code><code> = <ahref="VariantCostMap/index.html#type-t">VariantCostMap.t</a></code></dt><dtclass="spec type"id="type-summary"><ahref="#type-summary"class="anchor"></a><code><spanclass="keyword">type</span> summary</code><code> = </code><code>{</code><tableclass="record"><trid="type-summary.post"class="anchored"><tdclass="def field"><ahref="#type-summary.post"class="anchor"></a><code>post : <ahref="index.html#type-t">t</a>;</code></td></tr><trid="type-summary.is_on_ui_thread"class="anchored"><tdclass="def field"><ahref="#type-summary.is_on_ui_thread"class="anchor"></a><code>is_on_ui_thread : bool;</code></td></tr></table><code>}</code></dt></dl><dl><dtclass="spec value"id="val-pp_summary"><ahref="#val-pp_summary"class="anchor"></a><code><spanclass="keyword">val</span> pp_summary : <ahref="index.html#module-F">F</a>.formatter <span>-></span><ahref="index.html#type-summary">summary</a><span>-></span> unit</code></dt><dtclass="spec value"id="val-get_cost_kind"><ahref="#val-get_cost_kind"class="anchor"></a><code><spanclass="keyword">val</span> get_cost_kind : <ahref="../../IBase/CostKind/index.html#type-t">IBase.CostKind.t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="BasicCostWithReason/index.html#type-t">BasicCostWithReason.t</a></code></dt><dtclass="spec value"id="val-get_operation_cost"><ahref="#val-get_operation_cost"class="anchor"></a><code><spanclass="keyword">val</span> get_operation_cost : <ahref="index.html#type-t">t</a><span>-></span><ahref="BasicCostWithReason/index.html#type-t">BasicCostWithReason.t</a></code></dt><dtclass="spec value"id="val-map"><ahref="#val-map"class="anchor"></a><code><spanclass="keyword">val</span> map : <span>f:<span>(<ahref="BasicCostWithReason/index.html#type-t">BasicCostWithReason.t</a><span>-></span><ahref="BasicCostWithReason/index.html#type-t">BasicCostWithReason.t</a>)</span></span><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-zero_record"><ahref="#val-zero_record"class="anchor"></a><code><spanclass="keyword">val</span> zero_record : <ahref="index.html#type-t">t</a></code></dt><dd><p>Map representing cost record {OperationCost:0; AllocationCost:0; IOCost:0}</p></dd></dl><dl><dtclass="spec value"id="val-mult_by"><ahref="#val-mult_by"class="anchor"></a><code><spanclass="keyword">val</span> mult_by : <ahref="index.html#type-t">t</a><span>-></span><span>nb_exec:<ahref="BasicCost/index.html#type-t">BasicCost.t</a></span><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Special map where each element is multiplied by the number of executions</p></dd></dl><dl><dtclass="spec value"id="val-plus"><ahref="#val-plus"class="anchor"></a><code><spanclass="keyword">val</span> plus : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Union of two maps where common costs are added together</p></dd></dl><dl><dtclass="spec value"id="val-unit_cost_atomic_operation"><ahref="#val-unit_cost_atomic_operation"class="anchor"></a><code><spanclass="keyword">val</span> unit_cost_atomic_operation : <ahref="index.html#type-t">t</a></code></dt><dd><p>Map representing cost record {OperationCost:1; AllocationCost:0; IOCost:0}</p></dd></dl><dl><dtclass="spec value"id="val-unit_cost_allocation"><ahref="#val-unit_cost_allocation"class="anchor"></a><code><spanclass="keyword">val</span> unit_cost_allocation : <ahref="index.html#type-t">t</a></code></dt><dd><p>Map representing cost record {OperationCost:0; AllocationCost:1; IOCost:0}</p></dd></dl><dl><dtclass="spec value"id="val-of_operation_cost"><ahref="#val-of_operation_cost"class="anchor"></a><code><spanclass="keyword">val</span> of_operation_cost : <ahref="BasicCost/index.html#type-t">BasicCost.t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Map representing cost record {OperationCost:operation_cost; AllocationCost:0; IOCost:0}</p></dd></dl></div></body></html>