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

Method Create

test/float/mm-lin.cpp:1868–1892  ·  view source on GitHub ↗

Perform creation and registration

Source from the content-addressed store, hash-verified

1866 public:
1867 /// Perform creation and registration
1868 Create(void) {
1869 int n = sizeof(li)/sizeof(LinInstr*);
1870 for (int i=0; i<n; i++) {
1871 std::string s = Test::str(i);
1872 if (i < 10) {
1873 s = "00" + s;
1874 } else if (i < 100) {
1875 s = "0" + s;
1876 }
1877 (void) new LinExpr(li[i],s);
1878 }
1879 FloatRelTypes frts;
1880 for (int i=0; i<n/2; i++) {
1881 std::string s = Test::str(i);
1882 if (i < 10) {
1883 s = "00" + s;
1884 } else if (i < 100) {
1885 s = "0" + s;
1886 }
1887 (void) new LinRel(li[2*i],li[2*i+1],frts.frt(),s);
1888 ++frts;
1889 if (!frts())
1890 frts.reset();
1891 }
1892 }
1893 };
1894
1895 Create c;

Callers

nothing calls this directly

Calls 2

frtMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected