1 |
gezelter |
1490 |
#ifndef __EXCLUDE_H__ |
2 |
|
|
#define __EXCLUDE_H__ |
3 |
|
|
|
4 |
|
|
#include <set> |
5 |
|
|
#include <utility> |
6 |
|
|
|
7 |
|
|
using namespace std; |
8 |
|
|
|
9 |
tim |
1719 |
namespace oopse { |
10 |
gezelter |
1490 |
|
11 |
tim |
1719 |
|
12 |
|
|
class Exclude{ |
13 |
gezelter |
1490 |
|
14 |
tim |
1719 |
public: |
15 |
gezelter |
1490 |
|
16 |
tim |
1719 |
~Exclude(); |
17 |
gezelter |
1490 |
|
18 |
tim |
1719 |
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 |
gezelter |
1490 |
}; |
37 |
|
|
|
38 |
tim |
1719 |
}//end namespace oopse |
39 |
gezelter |
1490 |
#endif // __EXCLUDE_H__ |