MemoizeHashset<TIn, TOut>
A class in Root.Township, the global namespace.
A cache that runs an evaluate function once per input and keeps only the inputs it accepted, with their results.
- Listed in Global namespace: M to O
- Nested types
Evaluate
Constructors
| Member | What it is |
|---|---|
MemoizeHashset(MemoizeHashset<TIn, TOut> evaluate, IEqualityComparer<TIn> comparer = null) | Creates a MemoizeHashset from evaluate and comparer. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private MemoizeHashset<TIn, TOut> evaluate | The function that decides if an input is kept and works out its result. |
private Dictionary<TIn, TOut> lookup | The stored inputs and their results, using the comparer passed to the constructor. |
Methods
Used in
Members of other types that take, return or hold a MemoizeHashset<TIn, TOut>: