-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrtype.h
56 lines (42 loc) · 986 Bytes
/
rtype.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef RTYPE_H
#define RTYPE_H
#include "stringtools.h"
#include "utils.h"
#include "pTable.h"
#include <string>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <stdio.h>
#include <cmath>
#include <cstdlib>
using namespace std;
class RTYPE {
private:
int natoms;
string* anames;
int* anumbers;
int* coordn;
int nadd;
int nbrks;
int* add;
int* brks;
double Pr;
int inited;
int alloced;
void sort_rxn();
void sort_rxn1(int nadd1, int* add1, int nbrks1, int* brks1, int* anumbers1, int* coordn1);
public:
int id;
void init();
void freemem();
void set_rxn(int natoms1, string* anames1, int* anumbers1, int* coordn1, int nadd1, int* add1, int nbrks1, int* brks1);
void set_pr(double Pr1);
double get_pr();
int get_nadd();
int get_nbrks();
int match(int natoms1, int* anumbers1, int* coordn1, int nadd1, int* add1, int nbrks1, int* brks1);
void print();
};
#endif