ilang  1.1.4
ILAng: A Modeling and Verification Platform for SoCs
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros
Macros
set_op.h File Reference
#include <algorithm>
#include <iterator>
#include <set>

Go to the source code of this file.

Macros

#define UNION(a, b, r)
 
#define INTERSECT(a, b, r)
 
#define DIFFERENCE(a, b, r)
 
#define SYMDIFF(a, b, r)
 
#define IN(e, s)   ((s).find(e) != (s).end())
 
#define IN_p(e, s)   ((s)->find(e) != (s)->end())
 

Detailed Description

Some short cut for set operations

Macro Definition Documentation

#define DIFFERENCE (   a,
  b,
 
)
Value:
(std::set_difference((a).begin(), (a).end(), (b).begin(), (b).end(), \
std::inserter((r), (r).end())))
#define INTERSECT (   a,
  b,
 
)
Value:
(std::set_intersection((a).begin(), (a).end(), (b).begin(), (b).end(), \
std::inserter((r), (r).end())))
#define SYMDIFF (   a,
  b,
 
)
Value:
(std::set_symmetric_difference((a).begin(), (a).end(), (b).begin(), \
(b).end(), std::inserter((r), (r).end())))
#define UNION (   a,
  b,
 
)
Value:
(std::set_union((a).begin(), (a).end(), (b).begin(), (b).end(), \
std::inserter((r), (r).end())))