-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharray_set.h
More file actions
34 lines (25 loc) · 866 Bytes
/
array_set.h
File metadata and controls
34 lines (25 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef CGH_ARRAY_SET_H
#define CGH_ARRAY_SET_H
#include "benchmark.h"
#include "utils.h"
#include <vector>
class ArraySet {
public:
ArraySet();
ArraySet(const ArraySet& hs);
ArraySet(const SetDataSuite::SetData& data);
virtual ~ArraySet() { }
const ArraySet& operator=(const ArraySet& ps);
virtual void Insert(utils::Element e);
virtual void Remove(utils::Element e);
virtual bool Contains(utils::Element e) const;
virtual bool Includes(const ArraySet& ps) const;
virtual bool Equals(const ArraySet& ps) const;
virtual void Union(const ArraySet& rhs, ArraySet* r) const;
virtual void Intersect(const ArraySet& rhs, ArraySet* r) const;
virtual void Differentiate(const ArraySet& rhs, ArraySet* r) const;
virtual void DiffSym(const ArraySet& rhs, ArraySet* r) const;
protected:
std::vector<utils::Element> set_;
};
#endif