C# Class SharpNeat.Utility.UInt32IdGenerator

Conveniently encapsulates a single UInt32, which is incremented to produce new IDs.
Datei anzeigen Open project: colgreen/sharpneat Class Usage Examples

Public Methods

Method Description
Reset ( ) : void

Resets the next ID back to zero.

Reset ( uint nextId ) : void

Resets the next ID to a specific value.

UInt32IdGenerator ( )

Construct, setting the initial ID to zero.

UInt32IdGenerator ( uint nextId )

Construct, setting the initial ID to the value provided.

Method Details

Reset() public method

Resets the next ID back to zero.
public Reset ( ) : void
return void

Reset() public method

Resets the next ID to a specific value.
public Reset ( uint nextId ) : void
nextId uint
return void

UInt32IdGenerator() public method

Construct, setting the initial ID to zero.
public UInt32IdGenerator ( )

UInt32IdGenerator() public method

Construct, setting the initial ID to the value provided.
public UInt32IdGenerator ( uint nextId )
nextId uint