C# 클래스 SharpNeat.Utility.UInt32IdGenerator

Conveniently encapsulates a single UInt32, which is incremented to produce new IDs.
파일 보기 프로젝트 열기: colgreen/sharpneat 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Reset() 공개 메소드

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

Reset() 공개 메소드

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

UInt32IdGenerator() 공개 메소드

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

UInt32IdGenerator() 공개 메소드

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