[#BloombergLP-balm-IntegerCollector-loadAndReset] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]::loadAndReset :relfileprefix: ../../../ :mrdocs: Load the current metric aggregates into the specified `records` and reset this collector. == Synopsis Declared in `<balm_integercollector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void loadAndReset(xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord]* records); ---- == Description Load into the specified `records` the id of the metric being collected as well as the current count, total, minimum, and maximum aggregated values for that metric; then reset the count, total, minimum, and maximum values to their default states. After this operation, the count and total values will be 0, the minimum value will be `k_DEFAULT_MIN`, and the maximum value will be `k_DEFAULT_MAX`. Note that `k_DEFAULT_MIN != MetricRecord::k_DEFAULT_MIN` and `k_DEFAULT_MAX != MetricRecord::k_DEFAULT_MAX`; when populating `records`, this operation will convert default values for minimum and maximum. A minimum value of `k_DEFAULT_MIN` will populate a minimum value of `MetricRecord::k_DEFAULT_MIN` and a maximum value of `k_DEFAULT_MAX` will populate a maximum value of `MetricRecord::k_DEFAULT_MAX`. == Parameters [cols="1,4"] |=== | Name| Description | *records* | receives the current metric aggregates |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#