ILIAS  Release_4_0_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 380 of file class.EvalMath.php.

Member Function Documentation

EvalMathStack::last (   $n = 1)

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

References $n.

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

Definition at line 390 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 385 of file class.EvalMath.php.

References $count.

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

Field Documentation

EvalMathStack::$count = 0

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

Referenced by pop(), and push().

EvalMathStack::$stack = array()

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


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