| 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__ |