class final Core · pdftoolkit/pdf 0.12.4

PDF\Functions\Calculator\CalculatorStack
Per-evaluation bounded operand stack; it cannot retain procedures or external objects.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Functions\Calculator\CalculatorLimits $limits)

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

Declared methods

copy()

public function copy(int $count): void

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

index()

public function index(int $index): int|float|bool

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

pop()

public function pop(): int|float|bool

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

push()

public function push(int|float|bool $value): void

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

roll()

public function roll(int $count, int $amount): void

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗

values()

public function values(): array
@return list<int|float|bool>

Declared by PDF\Functions\Calculator\CalculatorStack · View the code ↗