Search Results for

    Show / Hide Table of Contents

    Class DictionaryPrimes

    A default selection of prime numbers used with different collections.

    Inheritance
    System.Object
    DictionaryPrimes
    Namespace: GDX.Collections.Generic
    Syntax
    public static class DictionaryPrimes

    Methods

    | Improve this Doc View Source

    GetNextSize(Int32)

    Returns size of hashtable to grow to.

    Declaration
    public static int GetNextSize(int oldSize)
    Parameters
    Type Name Description
    System.Int32 oldSize
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetPrime(Int32)

    Get the nearest prime number greater then or equal to the provided minimum.

    Declaration
    public static int GetPrime(int minimum)
    Parameters
    Type Name Description
    System.Int32 minimum

    The lowest possible value.

    Returns
    Type Description
    System.Int32

    A prime number.

    | Improve this Doc View Source

    GetPrimeAtIndex(Int32)

    Get the prime number in GDX.Collections.Generic.DictionaryPrimes.s_Primes at index.

    Declaration
    public static int GetPrimeAtIndex(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The valid array index requested.

    Returns
    Type Description
    System.Int32

    A prime number.

    Remarks

    No out of bounds detection.

    | Improve this Doc View Source

    GetPrimesLength()

    Get the number of prime numbers

    Declaration
    public static int GetPrimesLength()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SetDefaultPrimes()

    Establish the default prime numbers in GDX.Collections.Generic.DictionaryPrimes.s_Primes.

    Declaration
    public static void SetDefaultPrimes()
    | Improve this Doc View Source

    SetPrimes(Int32[])

    Set the GDX.Collections.Generic.DictionaryPrimes.s_Primes array with the provided primes.

    Declaration
    public static void SetPrimes(int[] primes)
    Parameters
    Type Name Description
    System.Int32[] primes

    An array of prime numbers.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.