/gem5/ext/pybind11/tests/ |
H A D | test_union.cpp | 2 tests/test_class.cpp -- test py::class_ definitions and basic functionality 18 py::class_<TestUnion>(m, "TestUnion")
|
H A D | test_async.cpp | 14 py::class_<DoesNotSupportAsync>(m, "DoesNotSupportAsync") 17 py::class_<SupportsAsync>(m, "SupportsAsync")
|
H A D | test_multiple_inheritance.cpp | 55 py::class_<Base1> b1(m, "Base1"); 64 py::class_<Base2> b2(m, "Base2"); 76 py::class_<Base12, Base1, Base2>(m, "Base12"); 77 py::class_<MIType, Base12>(m, "MIType") 82 #define PYBIND11_BASEN(N) py::class_<BaseN<N>>(m, "BaseN" #N).def(py::init<int>()).def("f" #N, [](BaseN<N> &b) { return b.i + N; }) 95 // py::class_<Base12v2>(m, "Base12v2", b1, b2) 107 py::class_<Base1a, std::shared_ptr<Base1a>>(m, "Base1a") 116 py::class_<Base2a, std::shared_ptr<Base2a>>(m, "Base2a") 123 py::class_<Base12a, /* Base1 missing */ Base2a, 141 py::class_<I801B [all...] |
H A D | test_modules.cpp | 30 py::class_<A>(m_sub, "A") 46 py::class_<B>(m_sub, "B") 66 py::class_<Dupe1>(dm, "Dupe1"); 67 py::class_<Dupe2>(dm, "Dupe2"); 72 py::class_<Dupe1>(dm, "Dupe1"); 80 py::class_<Dupe3>(dm, "dupe1_factory"); 92 py::class_<DupeException>(dm, "DupeException");
|
H A D | test_class.cpp | 2 tests/test_class.cpp -- test py::class_ definitions and basic functionality 28 TEST_SUBMODULE(class_, m) { 42 py::class_<NoConstructor>(m, "NoConstructor") 77 py::class_<Pet> pet_class(m, "Pet"); 83 /* One way of declaring a subclass relationship: reference parent's class_ object */ 84 py::class_<Dog>(m, "Dog", pet_class) 88 py::class_<Rabbit, Pet>(m, "Rabbit") 92 py::class_<Hamster, Pet>(m, "Hamster") 96 py::class_<Chimera, Pet>(m, "Chimera"); 111 py::class_<BaseClas [all...] |
H A D | test_smart_ptr.cpp | 93 py::class_<Object, ref<Object>> obj(m, "Object"); 106 py::class_<MyObject1, ref<MyObject1>>(m, "MyObject1", obj) 137 py::class_<MyObject2, std::shared_ptr<MyObject2>>(m, "MyObject2") 156 py::class_<MyObject3, std::shared_ptr<MyObject3>>(m, "MyObject3") 185 py::class_<MyObject4, std::unique_ptr<MyObject4, py::nodelete>>(m, "MyObject4") 202 py::class_<MyObject4a, std::unique_ptr<MyObject4a, py::nodelete>>(m, "MyObject4a") 212 py::class_<MyObject4b, MyObject4a>(m, "MyObject4b") 222 py::class_<MyObject5, huge_unique_ptr<MyObject5>>(m, "MyObject5") 239 py::class_<A, std::shared_ptr<A>>(m, "A"); 240 py::class_<SharedPtrRe [all...] |
H A D | test_virtual_functions.cpp | 190 py::class_<ExampleVirt, PyExampleVirt>(m, "ExampleVirt") 197 py::class_<NonCopyable>(m, "NonCopyable") 200 py::class_<Movable>(m, "Movable") 205 py::class_<NCVirt, NCVirtTrampoline>(m, "NCVirt") 240 py::class_<A, PyA>(m, "A") 262 py::class_<A2, PyA2>(m, "A2") 271 py::class_<Base, DispatchIssue>(m, "DispatchIssue") 310 py::class_<OverrideTest::A>(m, "OverrideTest_A") 312 py::class_<OverrideTest, PyOverrideTest>(m, "OverrideTest") 447 py::class_<A_Repea [all...] |
H A D | test_tagbased_polymorphic.cpp | 117 py::class_<Animal>(m, "Animal") 119 py::class_<Dog, Animal>(m, "Dog") 123 py::class_<Labrador, Dog>(m, "Labrador") 126 py::class_<Chihuahua, Dog>(m, "Chihuahua") 129 py::class_<Cat, Animal>(m, "Cat") 132 py::class_<Panther, Cat>(m, "Panther")
|
H A D | pybind11_tests.cpp | 46 py::class_<ConstructorStats>(m, "ConstructorStats") 76 py::class_<UserType>(m, "UserType", "A `py::class_` type for testing") 84 py::class_<IncType, UserType>(m, "IncType")
|
H A D | test_local_bindings.cpp | 45 if (py::hasattr(main, "class_")) { 90 py::class_<pets::Pet>(m, "Pet", py::module_local()) 93 py::class_<Cat, pets::Pet>(m, "Cat") 97 py::class_<MixGL>(m, "MixGL").def(py::init<int>()); 100 py::class_<MixGL2>(m, "MixGL2").def(py::init<int>());
|
H A D | test_opaque_types.cpp | 25 py::class_<StringList>(m, "StringList") 40 py::class_<ClassWithSTLVecProperty>(m, "ClassWithSTLVecProperty")
|
H A D | test_operator_overloading.cpp | 88 py::class_<Vector2>(m, "Vector2") 117 py::class_<C1>(m, "C1") 121 py::class_<C2>(m, "C2") 130 py::class_<NestABase>(m, "NestABase") 138 py::class_<NestA>(m, "NestA") 151 py::class_<NestB>(m, "NestB") 162 py::class_<NestC>(m, "NestC")
|
H A D | test_call_policies.cpp | 43 py::class_<Child>(m, "Child") 54 py::class_<Parent>(m, "Parent") 70 py::class_<ParentGC, Parent>(m, "ParentGC", py::dynamic_attr())
|
H A D | pybind11_cross_module_tests.cpp | 100 py::class_<pets::Pet>(m, "Pet", py::module_local()) 103 py::class_<Dog, pets::Pet>(m, "Dog") 107 py::class_<MixGL>(m, "MixGL", py::module_local()).def(py::init<int>()); 110 py::class_<MixGL2>(m, "MixGL2", py::module_local()).def(py::init<int>());
|
H A D | test_pickling.cpp | 34 py::class_<Pickleable>(m, "Pickleable") 58 py::class_<PickleableNew, Pickleable>(m, "PickleableNew") 90 py::class_<PickleableWithDict>(m, "PickleableWithDict", py::dynamic_attr()) 112 py::class_<PickleableWithDictNew, PickleableWithDict>(m, "PickleableWithDictNew")
|
H A D | test_gil_scoped.cpp | 31 py::class_<VirtClass, PyVirtClass>(m, "VirtClass")
|
H A D | local_bindings.h | 47 py::class_<T> bind_local(Args && ...args) { 48 return py::class_<T>(std::forward<Args>(args)...)
|
/gem5/src/sim/ |
H A D | python.cc | 41 pybind11::class_<
|
/gem5/ext/pybind11/tests/test_embed/ |
H A D | external_module.cpp | 16 py::class_<A>(m, "A")
|
/gem5/src/systemc/tlm_core/2/quantum/ |
H A D | global_quantum_python.cc | 41 pybind11::class_<tlm::tlm_global_quantum>(
|
/gem5/src/python/pybind11/ |
H A D | debug.cc | 98 py::class_<Debug::Flag> c_flag(m_debug, "Flag"); 108 py::class_<Debug::SimpleFlag>(m_debug, "SimpleFlag", c_flag); 109 py::class_<Debug::CompoundFlag>(m_debug, "CompoundFlag", c_flag);
|
H A D | core.cc | 110 py::class_<Drainable, std::unique_ptr<Drainable, py::nodelete>>( 118 py::class_<DrainManager, std::unique_ptr<DrainManager, py::nodelete>>( 136 py::class_<Serializable, std::unique_ptr<Serializable, py::nodelete>>( 140 py::class_<CheckpointIn>(m, "CheckpointIn") 149 py::class_<AddrRange>(m, "AddrRange") 184 py::class_<Net::EthAddr>(m, "EthAddr") 189 py::class_<Net::IpAddress>(m, "IpAddress") 194 py::class_<Net::IpNetmask, Net::IpAddress>(m, "IpNetmask") 199 py::class_<Net::IpWithPort, Net::IpAddress>(m, "IpWithPort") 210 py::class_<Cycle [all...] |
H A D | event.cc | 118 py::class_<EventQueue>(m, "EventQueue") 134 py::class_<GlobalSimLoopExitEvent, 155 py::class_<Event> c_event( 168 py::class_<PyEvent, Event>(m, "PyEvent")
|
H A D | stats.cc | 101 py::class_<Stats::Output>(m, "Output") 109 py::class_<Stats::Info, std::unique_ptr<Stats::Info, py::nodelete>>( 126 py::class_<Stats::Group, std::unique_ptr<Stats::Group, py::nodelete>>(
|
/gem5/src/cpu/testers/traffic_gen/ |
H A D | pygen.cc | 89 py::class_<BaseGen, std::shared_ptr<BaseGen>> c_base(m, "BaseGen");
|