MCPcopy Create free account
hub / github.com/Gecode/gecode / post

Method post

gecode/set/element/inter.hpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89 template<class View, class View0, class View1>
90 ExecStatus
91 ElementIntersection<View,View0,View1>::
92 post(Home home, IdxViewArray& xs, View0 x0, View1 x1,
93 const IntSet& universe) {
94 int n = xs.size();
95
96 // x0 \subseteq {1,...,n}
97 Iter::Ranges::Singleton s(0, n-1);
98 GECODE_ME_CHECK(x0.intersectI(home,s));
99 (void) new (home)
100 ElementIntersection<View,View0,View1>(home,xs,x0,x1,universe);
101 return ES_OK;
102 }
103
104 template<class View, class View0, class View1>
105 Actor*

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
intersectIMethod · 0.45

Tested by

no test coverage detected