git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@322 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -28,6 +28,10 @@ class Variable : protected Pointers {
|
||||
int find(char *);
|
||||
char *retrieve(char *);
|
||||
|
||||
void build_parse_tree(int);
|
||||
void evaluate_parse_tree(int, double *);
|
||||
void free_parse_tree();
|
||||
|
||||
private:
|
||||
int me;
|
||||
int nvar; // # of defined variables
|
||||
@ -38,9 +42,21 @@ class Variable : protected Pointers {
|
||||
int *index; // next available value for each variable
|
||||
char ***data; // str value of each variable's values
|
||||
|
||||
struct Tree {
|
||||
double value;
|
||||
double *array;
|
||||
int nstride;
|
||||
int type;
|
||||
Tree *left,*right;
|
||||
};
|
||||
|
||||
Tree *ptree; // parse tree for an ATOM variable
|
||||
|
||||
void copy(int, char **, char **);
|
||||
char *evaluate(char *);
|
||||
double evaluate(char *, Tree *);
|
||||
void remove(int);
|
||||
double eval_tree(Tree *, int);
|
||||
void free_tree(Tree *);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user