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

Method post

gecode/kernel/propagator/wait.hpp:146–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145 template<class View>
146 forceinline ExecStatus
147 UnaryWait<View>::post(Home home, View x,
148 std::function<void(Space& home)> c) {
149 if (!c)
150 throw InvalidFunction("UnaryWait::post");
151 if (x.assigned()) {
152 c(home);
153 return home.failed() ? ES_FAILED : ES_OK;
154 } else {
155 (void) new (home) UnaryWait<View>(home,x,c);
156 return ES_OK;
157 }
158 }
159 template<class View>
160 size_t
161 UnaryWait<View>::dispose(Space& home) {

Callers

nothing calls this directly

Calls 7

cFunction · 0.50
postFunction · 0.50
assignedMethod · 0.45
failedMethod · 0.45
sizeMethod · 0.45
move_lstMethod · 0.45
uniqueMethod · 0.45

Tested by

no test coverage detected