ForgeDocs
Documentation for the forge framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Forge.Utilities.UniqueIntGenerator Class Reference

Generates unique integers that are sequential. This class is thread-safe. More...

Public Member Functions

int Next ()
 Returns the next unique int. More...
 
void Consume (int value)
 Notifies that UniqueIdGenerator that the given ID has already been consumed. Please note that this API is not thread-safe. More...
 

Detailed Description

Generates unique integers that are sequential. This class is thread-safe.

Member Function Documentation

void Forge.Utilities.UniqueIntGenerator.Consume ( int  value)

Notifies that UniqueIdGenerator that the given ID has already been consumed. Please note that this API is not thread-safe.

int Forge.Utilities.UniqueIntGenerator.Next ( )

Returns the next unique int.


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