gridripper::math::expr::StkVar Class Reference

Variable on a stack. More...

Inheritance diagram for gridripper::math::expr::StkVar:

gridripper::math::expr::StkFunc gridripper::math::expr::StkOp

List of all members.

Public Member Functions

 StkVar (String name)
 Constructs a stack variable with the specified name.
 StkVar (StkVar other)
 Copy constructor.
void evalStack (StkPointer p)
 Evaluates the stack.
String getClassName ()
 Gets the class name.
void writeExternal (ObjectOutput out) throws java.io.IOException
 Saves object state.
void readExternal (ObjectInput in) throws java.io.IOException
 Restores object state.

Public Attributes

double value
 The value.


Detailed Description

Variable on a stack.

Version:
GridRipper 0.5, 11/16/2008
Since:
GROMIT 0.2 (2001)
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::math::expr::StkVar::StkVar ( String  name  )  [inline]

Constructs a stack variable with the specified name.

Parameters:
name the variable name

gridripper::math::expr::StkVar::StkVar ( StkVar  other  )  [inline]

Copy constructor.

Parameters:
other the object to copy


Member Function Documentation

void gridripper::math::expr::StkVar::evalStack ( StkPointer  p  )  [inline, virtual]

Evaluates the stack.

Parameters:
p the stack pointer

Implements gridripper::math::expr::StkFunc.

String gridripper::math::expr::StkVar::getClassName (  )  [inline, virtual]

Gets the class name.

Returns:
the class name

Reimplemented from gridripper::math::expr::StkFunc.

void gridripper::math::expr::StkVar::writeExternal ( ObjectOutput  out  )  throws java.io.IOException [inline]

Saves object state.

Parameters:
out the stream to write the object to
Exceptions:
IOException Includes any I/O exceptions that may occur

Reimplemented from gridripper::math::expr::StkFunc.

void gridripper::math::expr::StkVar::readExternal ( ObjectInput  in  )  throws java.io.IOException [inline]

Restores object state.

Parameters:
in the stream to read data from in order to restore the object
Exceptions:
IOException if I/O errors occur

Reimplemented from gridripper::math::expr::StkFunc.


Member Data Documentation

The value.


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

Generated on Wed Jun 17 18:47:30 2009 for GridRipper by  doxygen 1.5.6