IntAccumulator
Class in Zigurous.DataStructures
Inherits from ValueAccumulator<T>
Declaration
public sealed class IntAccumulator : ValueAccumulator<int>Description
Accumulates int values into a single total value.
Methods
| Add | Increases the accumulated total by a given value. | 
| Subtract | Decreases the accumulated total by a given value. | 
Inherited
Properties
| count | The number of unique values being accumulated (Read only). | 
Inherited
Methods
| GetValue | Returns the value stored with the specified identifier. | 
| SetValue | Stores a given value with the specified identifier. The total accumulated value is updated based on the difference between the new and old value. | 
| RemoveValue | Removes the value stored with the given identifier and updates the total accumulated value. | 
| Clear | Removes all stored values and resets the total accumulated value. |