Home
last modified time | relevance | path

Searched refs:ExampleMandA (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_methods_and_attributes.cpp19 class ExampleMandA { class
21 ExampleMandA() { print_default_created(this); } in ExampleMandA() function in ExampleMandA
22 ExampleMandA(int value) : value(value) { print_created(this, value); } in ExampleMandA() function in ExampleMandA
23 ExampleMandA(const ExampleMandA &e) : value(e.value) { print_copy_created(this); } in ExampleMandA() function in ExampleMandA
24 ExampleMandA(std::string&&) {} in ExampleMandA() function in ExampleMandA
25 ExampleMandA(ExampleMandA &&e) : value(e.value) { print_move_created(this); } in ExampleMandA() function in ExampleMandA
26 ~ExampleMandA() { print_destroyed(this); } in ~ExampleMandA()
32 void operator=(const ExampleMandA &e) { print_copy_assigned(this); value = e.value; } in operator =()
33 void operator=(ExampleMandA &&e) { print_move_assigned(this); value = e.value; } in operator =()
35 void add1(ExampleMandA other) { value += other.value; } // passing by value in add1()
[all …]
Dtest_methods_and_attributes.py11 instance1 = m.ExampleMandA()
12 instance2 = m.ExampleMandA(32)
59 cstats = ConstructorStats.get(m.ExampleMandA)
74 m.ExampleMandA.add2c = m.ExampleMandA.add2
75 m.ExampleMandA.add2d = m.ExampleMandA.add2b
76 a = m.ExampleMandA(123)
78 a.add2(m.ExampleMandA(-100))
80 a.add2b(m.ExampleMandA(20))
82 a.add2c(m.ExampleMandA(6))
84 a.add2d(m.ExampleMandA(-7))
[all …]