Searched refs:TestFactory2 (Results 1 - 2 of 2) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_factory_constructors.cpp | 31 class TestFactory2 { class 33 TestFactory2() : value("(empty2)") { print_default_created(this); } function in class:TestFactory2 34 TestFactory2(int v) : value(std::to_string(v)) { print_created(this, value); } function in class:TestFactory2 35 TestFactory2(std::string v) : value(std::move(v)) { print_created(this, value); } function in class:TestFactory2 37 TestFactory2(TestFactory2 &&m) { value = std::move(m.value); print_move_created(this); } function in class:TestFactory2 38 TestFactory2 &operator=(TestFactory2 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; } 40 ~TestFactory2() { print_destroyed(this); } 128 static TestFactory2 *construct [all...] |
H A D | test_factory_constructors.py | 12 cstats = [ConstructorStats.get(c) for c in [m.TestFactory1, m.TestFactory2, m.TestFactory3]] 25 x2 = m.TestFactory2(tag.move) 27 y2 = m.TestFactory2(tag.pointer, 7) 29 z2 = m.TestFactory2(tag.unique_ptr, "hi again") 312 class MITest(m.TestFactory1, m.TestFactory2): 315 m.TestFactory2.__init__(self, tag.move) 319 assert m.TestFactory2.value.fget(a) == "(empty2)" 431 a = m.TestFactory2(tag.pointer, 1) 441 a = m.TestFactory2(tag.pointer, 1) 444 a = m.TestFactory2(ta [all...] |
Completed in 9 milliseconds