ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/libmdtools/Exclude.hpp
Revision: 1334
Committed: Fri Jul 16 18:58:03 2004 UTC (19 years, 11 months ago) by gezelter
File size: 505 byte(s)
Log Message:
Initial import of OOPSE-1.0 source tree

File Contents

# User Rev Content
1 gezelter 1334 #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__