C# Класс ElizaCore.KeyStack

A stack of keys.
A stack of keys. The keys are kept in rank order.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Key() публичный Метод

Get a key from the stack.
Get a key from the stack.
public Key ( int n ) : Key
n int
Результат Key

KeyTop() публичный Метод

Get the stack size.
Get the stack size.
public KeyTop ( ) : int
Результат int

Print() публичный Метод

Prints the key stack.
Prints the key stack.
public Print ( ) : void
Результат void

PushKey() публичный Метод

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
Результат void

Reset() публичный Метод

Reset the key stack.
Reset the key stack.
public Reset ( ) : void
Результат void