C# Class SharpNeat.Utility.UInt32IdGenerator

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

Méthodes publiques

Méthode 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 méthode

Resets the next ID back to zero.
public Reset ( ) : void
Résultat void

Reset() public méthode

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

UInt32IdGenerator() public méthode

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

UInt32IdGenerator() public méthode

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