git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@254 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/* ----------------------------------------------------------------------
|
||||
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
||||
www.cs.sandia.gov/~sjplimp/lammps.html
|
||||
Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories
|
||||
http://lammps.sandia.gov, Sandia National Laboratories
|
||||
Steve Plimpton, sjplimp@sandia.gov
|
||||
|
||||
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
||||
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
||||
@ -14,15 +14,18 @@
|
||||
#ifndef VARIABLE_H
|
||||
#define VARIABLE_H
|
||||
|
||||
#include "lammps.h"
|
||||
#include "pointers.h"
|
||||
|
||||
class Variable : public LAMMPS {
|
||||
namespace LAMMPS_NS {
|
||||
|
||||
class Variable : protected Pointers {
|
||||
public:
|
||||
Variable();
|
||||
Variable(class LAMMPS *);
|
||||
~Variable();
|
||||
void set(int, char **);
|
||||
void set(char *, char *);
|
||||
int next(int, char **);
|
||||
int find(char *);
|
||||
char *retrieve(char *);
|
||||
|
||||
private:
|
||||
@ -35,10 +38,11 @@ class Variable : public LAMMPS {
|
||||
int *index; // next available value for each variable
|
||||
char ***data; // str value of each variable's values
|
||||
|
||||
int find(char *);
|
||||
void copy(int, char **, char **);
|
||||
char *evaluate(char *);
|
||||
void remove(int);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user