Lines Matching defs:value

19     TestFactory1() : value("(empty)") { print_default_created(this); }
20 TestFactory1(int v) : value(std::to_string(v)) { print_created(this, value); }
21 TestFactory1(std::string v) : value(std::move(v)) { print_created(this, value); }
27 std::string value;
33 TestFactory2() : value("(empty2)") { print_default_created(this); }
34 TestFactory2(int v) : value(std::to_string(v)) { print_created(this, value); }
35 TestFactory2(std::string v) : value(std::move(v)) { print_created(this, value); }
37 TestFactory2(TestFactory2 &&m) { value = std::move(m.value); print_move_created(this); }
38 TestFactory2 &operator=(TestFactory2 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
39 std::string value;
46 TestFactory3() : value("(empty3)") { print_default_created(this); }
47 TestFactory3(int v) : value(std::to_string(v)) { print_created(this, value); }
49 TestFactory3(std::string v) : value(std::move(v)) { print_created(this, value); }
50 TestFactory3(TestFactory3 &&m) { value = std::move(m.value); print_move_created(this); }
51 TestFactory3 &operator=(TestFactory3 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; }
52 std::string value;
71 int value;
74 TestFactory6(int i) : value{i} { print_created(this, i); }
75 TestFactory6(TestFactory6 &&f) { print_move_created(this); value = f.value; alias = f.alias; }
76 TestFactory6(const TestFactory6 &f) { print_copy_created(this); value = f.value; alias = f.alias; }
78 virtual int get() { return value; }
85 PyTF6(TestFactory6 &&base) : TestFactory6(std::move(base)) { alias = true; print_created(this, "move", value); }
96 int value;
99 TestFactory7(int i) : value{i} { print_created(this, i); }
100 TestFactory7(TestFactory7 &&f) { print_move_created(this); value = f.value; alias = f.alias; }
101 TestFactory7(const TestFactory7 &f) { print_copy_created(this); value = f.value; alias = f.alias; }
103 virtual int get() { return value; }
131 // by value moving:
169 .def_readwrite("value", &TestFactory1::value)
175 .def_readwrite("value", &TestFactory2::value)
198 .def_readwrite("value", &TestFactory3::value)
311 // Return-by-value:
315 // Requires deallocation of previous overload preallocated value:
330 // wrapped factory function must return a compatible pointer, holder, or value