Search Results for

    Show / Hide Table of Contents

    Class IndexFlagSet

    This class provides a similar interface to BitArray, but can optionally use a HashSet (or perhaps some other DS) if the fraction of the index space required is small

    Inheritance
    Object
    IndexFlagSet
    Implements
    IEnumerable<Int32>
    IEnumerable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class IndexFlagSet : IEnumerable<int>, IEnumerable

    Constructors

    IndexFlagSet(Boolean, Int32)

    Declaration
    public IndexFlagSet(bool bForceSparse, int MaxIndex = -1)
    Parameters
    Type Name Description
    Boolean bForceSparse
    Int32 MaxIndex

    IndexFlagSet(Int32, Int32)

    Declaration
    public IndexFlagSet(int MaxIndex, int SubsetCountEst)
    Parameters
    Type Name Description
    Int32 MaxIndex
    Int32 SubsetCountEst

    Properties

    Count

    Returns number of true values in set

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Item[Int32]

    Declaration
    public bool this[int key] { get; set; }
    Parameters
    Type Name Description
    Int32 key
    Property Value
    Type Description
    Boolean

    Methods

    Add(Int32)

    sets value i to true

    Declaration
    public void Add(int i)
    Parameters
    Type Name Description
    Int32 i

    Contains(Int32)

    checks if value i is true

    Declaration
    public bool Contains(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    Boolean

    GetEnumerator()

    enumerate over indices w/ value = true

    Declaration
    public IEnumerator<int> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Int32>

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    In This Article
    Back to top ViRGIS VR GIS