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

Method post

gecode/int/count/view-gq.hpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41 template<class VX, class VY, class VZ, bool shr, bool dom>
42 ExecStatus
43 GqView<VX,VY,VZ,shr,dom>::post(Home home,
44 ViewArray<VX>& x, VY y, VZ z, int c) {
45 GECODE_ME_CHECK(z.lq(home,x.size()-c));
46 if (isval(y) && z.assigned())
47 return GqInt<VX,VY>::post(home,x,y,z.val()+c);
48 if (sharing(x,y,z))
49 (void) new (home) GqView<VX,VY,VZ,true,dom>(home,x,y,z,c);
50 else
51 (void) new (home) GqView<VX,VY,VZ,false,dom>(home,x,y,z,c);
52 return ES_OK;
53 }
54
55 template<class VX, class VY, class VZ, bool shr, bool dom>
56 forceinline

Callers

nothing calls this directly

Calls 6

isvalFunction · 0.85
postFunction · 0.50
lqMethod · 0.45
sizeMethod · 0.45
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected