Trampoline for virtual function
| 137 | |
| 138 | // Trampoline for virtual function |
| 139 | bool solve() override |
| 140 | { |
| 141 | PYBIND11_OVERLOAD_PURE( |
| 142 | bool, // Return type |
| 143 | Solver, // Parent class |
| 144 | solve, // Name of function in C++ (must match Python name) |
| 145 | ); |
| 146 | } |
| 147 | |
| 148 | // Trampoline for virtual function |
| 149 | std::string getType() const override |
| 150 | { |
| 151 | PYBIND11_OVERLOAD_PURE( |
| 152 | std::string, // Return type |
| 153 | Solver, // Parent class |
| 154 | getType, // Name of function in C++ (must match Python name) |
| 155 | ); |
| 156 | } |
| 157 | |
| 158 | // Trampoline for virtual function |
| 159 | std::shared_ptr<Solver> clone() const override |
| 160 | { |
| 161 | PYBIND11_OVERLOAD_PURE( |
| 162 | std::shared_ptr<Solver>, // Return type |
| 163 | Solver, // Parent class |
| 164 | clone, // Name of function in C++ (must match Python name) |
| 165 | ); |
| 166 | } |
| 167 | }; |
| 168 | |
| 169 | ::py::class_< |
| 170 | dart::optimizer::Solver, |
no outgoing calls
no test coverage detected