TZExecutionStack Class Reference

Defines an expression exception. More...

Inherits TObject.

List of all members.

Public Member Functions

 Clear ()
 Clears this stack.
TZVariant GetParameter (Integer Index)
 Gets a function parameter by index.
TZVariant Peek ()
 Gets a value from the top of the stack without removing it.
TZVariant Pop ()
 Gets a value from the top and removes it from the stack.
 Push (TZVariant Value)
 Puts a value to the top of the stack.
 Swap ()
 Swaps two values on the top of the stack.
 TZExecutionStack ()
 Creates this object.

Public Attributes

Integer Count
TZVariant Values

Private Member Functions

TZVariant GetValue (Integer Index)
 Gets a value from absolute position in the stack.

Private Attributes

Integer FCapacity
Integer FCount
TZVariantDynArray FValues


Detailed Description

Defines an expression exception.

Defines an execution stack object.

Definition at line 67 of file ZExpression.pas.


Constructor & Destructor Documentation

TZExecutionStack::TZExecutionStack (  ) 

Creates this object.

Definition at line 493 of file ZExpression.pas.


Member Function Documentation

TZExecutionStack::Clear (  ) 

Clears this stack.

Definition at line 605 of file ZExpression.pas.

TZVariant TZExecutionStack::GetParameter ( Integer  Index  ) 

Gets a function parameter by index.

Parameters:
a function parameter index. O is used for parameter count.
Returns:
a parameter value.

Definition at line 536 of file ZExpression.pas.

TZVariant TZExecutionStack::GetValue ( Integer  Index  )  [private]

Gets a value from absolute position in the stack.

Parameters:
Index a value index.
Returns:
a variant value from requested position.

Definition at line 508 of file ZExpression.pas.

TZVariant TZExecutionStack::Peek (  ) 

Gets a value from the top of the stack without removing it.

Returns:
a value from the top.

Definition at line 521 of file ZExpression.pas.

TZVariant TZExecutionStack::Pop (  ) 

Gets a value from the top and removes it from the stack.

Returns:
a value from the top.

Definition at line 551 of file ZExpression.pas.

TZExecutionStack::Push ( TZVariant  Value  ) 

Puts a value to the top of the stack.

Definition at line 566 of file ZExpression.pas.

TZExecutionStack::Swap (  ) 

Swaps two values on the top of the stack.

Definition at line 582 of file ZExpression.pas.


Member Data Documentation

See also:
FCount For reading

Definition at line 111 of file ZExpression.pas.

Integer TZExecutionStack::FCapacity [private]

Definition at line 76 of file ZExpression.pas.

Integer TZExecutionStack::FCount [private]

Definition at line 74 of file ZExpression.pas.

Definition at line 72 of file ZExpression.pas.

See also:
GetValue For reading

Definition at line 114 of file ZExpression.pas.


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

Generated on Wed Dec 30 08:42:51 2009 for zeoslib by  doxygen 1.5.7.1