git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10310 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
#define LMP_FORCE_H
|
||||
|
||||
#include "pointers.h"
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace LAMMPS_NS {
|
||||
|
||||
@ -45,6 +47,9 @@ class Force : protected Pointers {
|
||||
class Pair *pair;
|
||||
char *pair_style;
|
||||
|
||||
typedef Pair *(*PairCreator)(LAMMPS *);
|
||||
std::map<std::string,PairCreator> *pair_map;
|
||||
|
||||
class Bond *bond;
|
||||
char *bond_style;
|
||||
|
||||
@ -98,6 +103,9 @@ class Force : protected Pointers {
|
||||
double numeric(const char *, int, char *);
|
||||
int inumeric(const char *, int, char *);
|
||||
bigint memory_usage();
|
||||
|
||||
private:
|
||||
template <typename T> static Pair *pair_creator(LAMMPS *);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user