OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    TCollection Class Reference

    The package <TCollection> provides the services for the transient basic data structures. More...

    #include <TCollection.hxx>

    Static Public Member Functions

    static int NextPrimeForMap (const int I)
     Returns a prime number greater than suitable to dimension a Map. When becomes great there is a limit on the result (today the limit is around 1 000 000). This is not a limit of the number of items but a limit in the number of buckets. i.e. there will be more collisions in the map.

    Detailed Description

    The package <TCollection> provides the services for the transient basic data structures.

    Member Function Documentation

    ◆ NextPrimeForMap()

    int TCollection::NextPrimeForMap ( const int I)
    inlinestatic

    Returns a prime number greater than suitable to dimension a Map. When becomes great there is a limit on the result (today the limit is around 1 000 000). This is not a limit of the number of items but a limit in the number of buckets. i.e. there will be more collisions in the map.


    The documentation for this class was generated from the following file: