• Home
  • Torque Game Engines

    Navigation

      • Classes
      • Files
      • Groups
      • Namespaces
      • Pages
        • Deprecated List
        • Todo List
      • Unions
      • Classes
      • Groups
      • Namespaces
      • Pages
        • Deprecated List

    More

    • Download Documentation
    • Torque3D Source
    • Discord
    Torque3D Documentation / _generateds / IdGenerator

    IdGenerator

    Engine/source/core/idGenerator.h

    More...

    Private Attributes

    U32
    
    mIdBlockBase 
    
    U32
    
    mIdRangeSize 
    
    U32
    
    mNextId 
    
    Vector< U32 >
    
    mPool 
    

    Private Functions

    void
    
    reclaim()
    

    Public Functions

    IdGenerator(U32 base, U32 numIds)
    
    U32
    
    alloc()
    
    void
    
    free(U32 id)
    
    U32
    
    numIdsUsed()
    
    void
    
    reset()
    

    Detailed Description

    Private Attributes

    U32 mIdBlockBase 
    
    U32 mIdRangeSize 
    
    U32 mNextId 
    
    Vector< U32 > mPool 
    

    Private Functions

    reclaim()
    

    Public Functions

    IdGenerator(U32 base, U32 numIds)
    

    alloc()
    

    free(U32 id)
    

    numIdsUsed()
    

    reset()
    

    Built with Hugo and