MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Func.h File Reference
#include "muParser.h"
+ Include dependency graph for Func.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Func
 

Functions

static double * _addVar (const char *name, void *data)
 

Function Documentation

static double* _addVar ( const char *  name,
void *  data 
)
static

Simple function parser and evaluator for MOOSE. This can take a mathematical expression in standard C form and a list of variables values and evaluate the results.

Definition at line 356 of file Func.cpp.

References Func::_varbuf.

357 {
358  Func* func = reinterpret_cast< Func * >(data);
359  double *ret = new double;
360  *ret = 0.0;
361  func->_varbuf.push_back(ret);
362  return ret;
363 }
Definition: Func.h:58
vector< double * > _varbuf
Definition: Func.h:109