Class SparseSet
A sparse set implementation.
Assembly: Advanced.Algorithms.dll
Syntax
public class SparseSet : IEnumerable<int>, IEnumerable
Constructors
|
Improve this Doc
View Source
SparseSet(Int32, Int32)
Declaration
public SparseSet(int maxVal, int capacity)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
Methods
|
Improve this Doc
View Source
Add(Int32)
Declaration
public void Add(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator<int> GetEnumerator()
Returns
|
Improve this Doc
View Source
HasItem(Int32)
Declaration
public bool HasItem(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Returns
|
Improve this Doc
View Source
Remove(Int32)
Declaration
public void Remove(int value)
Parameters
Type |
Name |
Description |
Int32 |
value |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements