ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
EvalMathStack Class Reference
+ Collaboration diagram for EvalMathStack:

Public Member Functions

 push ($val)
 pop ()
 last ($n=1)

Data Fields

 $stack = array()
 $count = 0

Detailed Description

Definition at line 384 of file class.EvalMath.php.

Member Function Documentation

EvalMathStack::last (   $n = 1)

Definition at line 402 of file class.EvalMath.php.

References $n.

{
return $this->stack[$this->count-$n];
}
EvalMathStack::pop ( )

Definition at line 394 of file class.EvalMath.php.

References $count.

{
if ($this->count > 0) {
$this->count--;
return $this->stack[$this->count];
}
return null;
}
EvalMathStack::push (   $val)

Definition at line 389 of file class.EvalMath.php.

References $count.

{
$this->stack[$this->count] = $val;
$this->count++;
}

Field Documentation

EvalMathStack::$count = 0

Definition at line 387 of file class.EvalMath.php.

Referenced by pop(), and push().

EvalMathStack::$stack = array()

Definition at line 386 of file class.EvalMath.php.


The documentation for this class was generated from the following file: