1 |
#ifndef __EXCLUDE_H__ |
2 |
#define __EXCLUDE_H__ |
3 |
|
4 |
#include <set> |
5 |
#include <utility> |
6 |
|
7 |
using namespace std; |
8 |
|
9 |
namespace oopse { |
10 |
|
11 |
|
12 |
class Exclude{ |
13 |
|
14 |
public: |
15 |
|
16 |
~Exclude(); |
17 |
|
18 |
void addPair(int i, int j); |
19 |
|
20 |
void removePair(int i, int j); |
21 |
|
22 |
std::set<std::pair<int, int> >::iterator findPair(int i, int j); |
23 |
|
24 |
int getSize(); |
25 |
|
26 |
int* getExcludeList(); |
27 |
|
28 |
friend ostream& operator(ostream& o, Exclude& e); |
29 |
protected: |
30 |
|
31 |
std::set<std::pair<int, int> > excludeSet_; |
32 |
std::vector<std::pair<int, int> > excludeList_; |
33 |
bool modified_; |
34 |
|
35 |
|
36 |
}; |
37 |
|
38 |
}//end namespace oopse |
39 |
#endif // __EXCLUDE_H__ |