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

Variable on a stack. More...

#include <StkVar.h>

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

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

List of all members.

Public Member Functions

 StkVar (const string &name, GReal_t value=0)
 Constructs a stack variable with the specified name.
 StkVar (const StkVar &other)
 Copy constructor.
void evalStack (GReal_t *&p) const
 Evaluates the stack.
virtual string getClassName () const
 Gets the class name.

Public Attributes

GReal_t value
 The value.


Detailed Description

Variable on a stack.

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

Constructor & Destructor Documentation

gridripper::math::expr::StkVar::StkVar ( const string &  name,
GReal_t  value = 0 
) [inline]

Constructs a stack variable with the specified name.

Parameters:
name the variable name
value the value

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

Copy constructor.

Parameters:
other the object to copy


Member Function Documentation

void gridripper::math::expr::StkVar::evalStack ( GReal_t *&  p  )  const [inline, virtual]

Evaluates the stack.

Parameters:
p the stack pointer

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

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

Gets the class name.

Returns:
the class name

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:46:56 2009 for GridRipper by  doxygen 1.5.6