Searched refs:ElementBase (Results 1 - 1 of 1) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_smart_ptr.cpp339 struct ElementBase { struct
340 virtual ~ElementBase() { } /* Force creation of virtual table */
342 py::class_<ElementBase, std::shared_ptr<ElementBase>>(m, "ElementBase");
344 struct ElementA : ElementBase {
349 py::class_<ElementA, ElementBase, std::shared_ptr<ElementA>>(m, "ElementA")
354 void add(std::shared_ptr<ElementBase> e) { l.push_back(e); }
355 std::vector<std::shared_ptr<ElementBase>> l;

Completed in 9 milliseconds