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

Function viewarray

gecode/int/rel.cpp:548–556  ·  view source on GitHub ↗

Return view array

Source from the content-addressed store, hash-verified

546
547 /// Return view array
548 ViewArray<Int::ConstIntView>
549 viewarray(Space& home, const IntArgs& x) {
550 ViewArray<Int::ConstIntView> xv(home, x.size());
551 for (int i=0; i<x.size(); i++) {
552 Int::Limits::check(x[i],"Int::rel");
553 xv[i] = Int::ConstIntView(x[i]);
554 }
555 return xv;
556 }
557
558 }
559

Callers 1

relFunction · 0.70

Calls 3

ConstIntViewClass · 0.85
checkFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected