ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Exclude.hpp
Revision: 1097
Committed: Mon Apr 12 20:32:20 2004 UTC (20 years, 2 months ago) by gezelter
File size: 505 byte(s)
Log Message:
Changes for RigidBody dynamics (Somewhat extensive)

File Contents

# Content
1 #ifndef __EXCLUDE_H__
2 #define __EXCLUDE_H__
3
4 #include <set>
5 #include <utility>
6
7 using namespace std;
8
9 class Exclude{
10
11 public:
12
13 ~Exclude();
14
15 void addPair(int i, int j);
16 int hasPair(int i, int j);
17 void printMe( void );
18 int getSize( void );
19 int* getFortranArray( void );
20 static Exclude* Instance();
21
22 protected:
23
24 set<pair<int, int> > excludeSet;
25 int* exPairs;
26 bool newFortranArrayNeeded;
27 Exclude();
28
29 private:
30 static Exclude* _instance;
31
32 };
33
34 #endif // __EXCLUDE_H__