ilang
1.1.4
ILAng: A Modeling and Verification Platform for SoCs
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Friends
Macros
include
ilang
mcm
set_op.h
Go to the documentation of this file.
1
4
#ifndef ILANG_MCM_SET_OP_H__
5
#define ILANG_MCM_SET_OP_H__
6
7
#include <algorithm>
8
#include <iterator>
9
#include <set>
10
11
#define UNION(a, b, r) \
12
(std::set_union((a).begin(), (a).end(), (b).begin(), (b).end(), \
13
std::inserter((r), (r).end())))
14
#define INTERSECT(a, b, r) \
15
(std::set_intersection((a).begin(), (a).end(), (b).begin(), (b).end(), \
16
std::inserter((r), (r).end())))
17
#define DIFFERENCE(a, b, r) \
18
(std::set_difference((a).begin(), (a).end(), (b).begin(), (b).end(), \
19
std::inserter((r), (r).end())))
20
#define SYMDIFF(a, b, r) \
21
(std::set_symmetric_difference((a).begin(), (a).end(), (b).begin(), \
22
(b).end(), std::inserter((r), (r).end())))
23
24
#define IN(e, s) ((s).find(e) != (s).end())
25
#define IN_p(e, s) ((s)->find(e) != (s)->end())
26
27
#endif // ILANG_MCM_SET_OP_H__
Generated by
1.8.5