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

Method ShapeAllocator

gecode/gist/visualnode.cpp:50–59  ·  view source on GitHub ↗

Constructor

Source from the content-addressed store, hash-verified

48 public:
49 /// Constructor
50 ShapeAllocator(void) {
51 Shape::leaf = Shape::allocate(1);
52 (*Shape::leaf)[0] = Extent(Layout::extent);
53 Shape::leaf->computeBoundingBox();
54
55 Shape::hidden = Shape::allocate(2);
56 (*Shape::hidden)[0] = Extent(Layout::extent);
57 (*Shape::hidden)[1] = Extent(Layout::extent);
58 Shape::hidden->computeBoundingBox();
59 }
60 ~ShapeAllocator(void) {
61 Shape::deallocate(Shape::leaf);
62 Shape::deallocate(Shape::hidden);

Callers

nothing calls this directly

Calls 2

ExtentClass · 0.85
computeBoundingBoxMethod · 0.80

Tested by

no test coverage detected