-
Notifications
You must be signed in to change notification settings - Fork 3
/
ATOM.h
82 lines (79 loc) · 1.09 KB
/
ATOM.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef ATOM_h
#define ATOM_h
#include <sys/types.h>
#include <dirent.h>
#include <cerrno>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <vector>
#include <ctime>
#include <cstdio>
#include <cctype>
#include <sstream>
#include "MATRIX.h"
using namespace std;
class ATOM
{
public:
ATOM() {
order.resize(0);
}
~ATOM() {
vector<int>().swap(order);
}
int id;
string name,atm;
vector<int> order;
int nh;
int bd[3];
int type;
int index;
double rb;
double ang0;
int norder;
int chg;
int nbond; // how many char for name
};
class DEATOM {
public :
DEATOM() {
}
~DEATOM() {}
string name;
double r_bnd;
int nbnd;
double x[3];
void find_r();
};
class POOL
{
public:
POOL(){
//a=NULL;
a.resize(0);
if (0) set_up();
}
~POOL(){
if (0) {
/*
if(a!=NULL) {
delete [] a;
a=NULL;
}
*/
//a.clear();
vector<ATOM>().swap(a);
}
}
int num;
//ATOM *a; // types of atoms
vector<ATOM> a;
void set_up();
private:
};
#endif