Show / Hide Table of Contents

Class SparseLongIndex

An efficient index for a large number of bitflags that can handle both negative and positive ids.

Inheritance
System.Object
SparseLongIndex
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class SparseLongIndex : IEnumerable<long>

Constructors

SparseLongIndex(Int32)

Creates a new longindex.

Declaration
public SparseLongIndex(int blockSize = 32)
Parameters
System.Int32 blockSize

Properties

Count

Returns the number of positive flags.

Declaration
public long Count { get; }
Property Value
System.Int64

Methods

Add(Int64)

Sets an id.

Declaration
public void Add(long number)
Parameters
System.Int64 number

Clear()

Clears this index.

Declaration
public void Clear()

Contains(Int64)

Returns true if the id is there.

Declaration
public bool Contains(long number)
Parameters
System.Int64 number

Returns
System.Boolean

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<long> GetEnumerator()
Returns
IEnumerator<System.Int64>

Remove(Int64)

Removes an id.

Declaration
public void Remove(long number)
Parameters
System.Int64 number

Back to top Built by Itinero, MIT licensed.