gridripper::math::expr::StkConst Class Reference

Constant function. More...

#include <StkConst.h>

Inheritance diagram for gridripper::math::expr::StkConst:

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

List of all members.

Public Member Functions

 StkConst (const string &name, GReal_t value=0)
 Constructs a stack constant.
 StkConst (const StkConst &other)
 Copy constructor.
GReal_t getValue ()
 Gets the value of the constant.
bool equals (const StkConst &other) const
 Tests equality.
bool equals (GReal_t otherValue) const
 Tests equality.
void evalStack (GReal_t *&p) const
 Evaluates the stack.
virtual string getClassName () const
 Gets the class name.


Detailed Description

Constant function.

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

Constructor & Destructor Documentation

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

Constructs a stack constant.

Parameters:
name the constant name
value the value

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

Copy constructor.

Parameters:
other the object to copy


Member Function Documentation

GReal_t gridripper::math::expr::StkConst::getValue (  )  [inline]

Gets the value of the constant.

Returns:
the value

bool gridripper::math::expr::StkConst::equals ( const StkConst other  )  const

Tests equality.

Returns:
true if the constants are equal, false otherwise

bool gridripper::math::expr::StkConst::equals ( GReal_t  otherValue  )  const

Tests equality.

Returns:
true if the values are equal, false otherwise

void gridripper::math::expr::StkConst::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::StkConst::getClassName (  )  const [inline, virtual]

Gets the class name.

Returns:
the class name

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


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

Generated on Wed Jun 17 18:46:55 2009 for GridRipper by  doxygen 1.5.6