C# Class ElizaCore.KeyStack

A stack of keys.
A stack of keys. The keys are kept in rank order.
显示文件 Open project: xamarin/monotouch-samples Class Usage Examples

Public Methods

Method Description
Key ( int n ) : Key

Get a key from the stack.

Get a key from the stack.

KeyTop ( ) : int

Get the stack size.

Get the stack size.

Print ( ) : void

Prints the key stack.

Prints the key stack.

PushKey ( Key key ) : void

Push a key in the stack.

Push a key in the stack. Keep the highest rank keys at the bottom.

Reset ( ) : void

Reset the key stack.

Reset the key stack.

Method Details

Key() public method

Get a key from the stack.
Get a key from the stack.
public Key ( int n ) : Key
n int
return Key

KeyTop() public method

Get the stack size.
Get the stack size.
public KeyTop ( ) : int
return int

Print() public method

Prints the key stack.
Prints the key stack.
public Print ( ) : void
return void

PushKey() public method

Push a key in the stack.
Push a key in the stack. Keep the highest rank keys at the bottom.
public PushKey ( Key key ) : void
key Key
return void

Reset() public method

Reset the key stack.
Reset the key stack.
public Reset ( ) : void
return void