class PHPExcel_Calculation_Token_Stack

PHPExcelCalculationToken_Stack

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Methods

integer
count()

Return the number of entries on the stack

push(mixed $type, mixed $value, mixed $reference = null)

Push a new entry onto the stack

mixed
pop()

Pop the last entry from the stack

mixed
last(integer $n = 1)

Return an entry from the stack without removing it

clear()

Clear the stack

Details

at line 58
integer count()

Return the number of entries on the stack

Return Value

integer

at line 70
push(mixed $type, mixed $value, mixed $reference = null)

Push a new entry onto the stack

Parameters

mixed $type
mixed $value
mixed $reference

at line 90
mixed pop()

Pop the last entry from the stack

Return Value

mixed

at line 104
mixed last(integer $n = 1)

Return an entry from the stack without removing it

Parameters

integer $n number indicating how far back in the stack we want to look

Return Value

mixed

at line 115
clear()

Clear the stack