Revision: | 408 |
Committed: | Wed Mar 26 20:45:07 2003 UTC (22 years, 1 month ago) by mmeineke |
File size: | 358 byte(s) |
Log Message: | added an Exclude class with static arrays similar to the Atom class |
# | Content |
---|---|
1 | #include <cstdlib> |
2 | |
3 | #include "Exclude.hpp" |
4 | |
5 | double* Exclude::exPair; |
6 | |
7 | Exclude::Exclude( int theIndex ){ |
8 | |
9 | exI = index*2; |
10 | exJ = index*2 + 1; |
11 | } |
12 | |
13 | void Exclude::createArray( int nExcludes ){ |
14 | |
15 | exPair = new int[nExcludes*2]; |
16 | } |
17 | |
18 | void destroyArray( void ){ |
19 | delete[] exPair; |
20 | } |
21 | |
22 | void Exclude::setPair( int i, int j ){ |
23 | |
24 | exPair[exI] = i; |
25 | exPair[exJ] = j; |
26 | } |