ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/Exclude.hpp
Revision: 1719
Committed: Fri Nov 5 23:38:27 2004 UTC (19 years, 9 months ago) by tim
File size: 704 byte(s)
Log Message:
Fix Exclude class etc.

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