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

Method allocate

gecode/gist/visualnode.hpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 inline Shape*
81 Shape::allocate(int d) {
82 assert(d >= 1);
83 Shape* ret;
84 ret =
85 static_cast<Shape*>(heap.ralloc(sizeof(Shape)+(d-1)*sizeof(Extent)));
86 ret->_depth = d;
87 return ret;
88 }
89
90 forceinline void
91 Shape::deallocate(Shape* shape) {

Callers

nothing calls this directly

Calls 1

rallocMethod · 0.45

Tested by

no test coverage detected