Planeshift
EmptyMathStatement Class Reference

This holds an empty statement that shall not be executed but is used for control flow statements, e.g. More...

#include <mathscript.h>

Public Member Functions

 EmptyMathStatement ()
 
double Evaluate (MathEnvironment *) const
 
- Public Member Functions inherited from MathExpression
size_t GetOpcode () const
 
void SetOpcode (size_t newOpcode)
 
virtual ~MathExpression ()
 

Additional Inherited Members

- Static Public Member Functions inherited from MathExpression
static MathExpressionCreate (const char *expression, const char *name="")
 Empty destructor. More...
 
- Protected Types inherited from MathExpression
enum  {
  MATH_NONE = 0, MATH_COND = 1, MATH_EXP = 2, MATH_LOOP = 4,
  MATH_ASSIGN = 8, MATH_BREAK = 16, MATH_WHILE = MATH_COND | MATH_EXP | MATH_LOOP, MATH_IF = MATH_COND | MATH_EXP,
  MATH_ELSE = MATH_COND, MATH_DO = MATH_EXP | MATH_LOOP
}
 
- Protected Member Functions inherited from MathExpression
 MathExpression ()
 
bool Parse (const char *expression)
 
- Protected Attributes inherited from MathExpression
FunctionParser fp
 
const char * name
 
size_t opcode
 
csSet< PropertyRefpropertyRefs
 properties that have to be resolved prior to evaluation More...
 
csSet< csString > requiredObjs
 a subset of requiredVars which are known to be objects; for type checking More...
 
csSet< csString > requiredVars
 variables required to execute this expression More...
 

Detailed Description

This holds an empty statement that shall not be executed but is used for control flow statements, e.g.

else or do

Definition at line 420 of file mathscript.h.

Constructor & Destructor Documentation

EmptyMathStatement::EmptyMathStatement ( )
inline

Definition at line 423 of file mathscript.h.

Member Function Documentation

double EmptyMathStatement::Evaluate ( MathEnvironment ) const
inlinevirtual

Reimplemented from MathExpression.

Definition at line 428 of file mathscript.h.


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