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

Method best

gecode/gist/node.hpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95 template<class T>
96 forceinline T*
97 NodeAllocatorBase<T>::best(int i) const {
98 assert(i/NodeBlockSize < n);
99 assert(i/NodeBlockSize < cur_b || i%NodeBlockSize <= cur_t);
100 int bi = b[i/NodeBlockSize]->best[i%NodeBlockSize];
101 return bi == -1 ? nullptr : (*this)[bi];
102 }
103
104 template<class T>
105 forceinline void

Callers 2

recomputeMethod · 0.45
acquireSpaceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected