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

/gem5/ext/pybind11/include/pybind11/
H A Dattr.h56 /// Annotation which requests that a special metaclass is created for a type
57 struct metaclass { struct
60 PYBIND11_DEPRECATED("py::metaclass() is no longer required. It's turned on by default now.")
61 metaclass() {} function in struct:metaclass
63 /// Override pybind11's default metaclass
64 explicit metaclass(handle value) : value(value) { } function in struct:metaclass
239 /// Custom metaclass (optional)
240 handle metaclass; member in struct:type_record
425 struct process_attribute<metaclass> : process_attribute_default<metaclass> {
[all...]
/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h159 /** This metaclass is assigned by default to all pybind11 types and is required in order
160 for static properties to function correctly. Users may override this using `py::metaclass`.
172 pybind11_fail("make_default_metaclass(): error allocating metaclass!");
365 inline PyObject *make_object_base_type(PyTypeObject *metaclass) { argument
373 auto heap_type = (PyHeapTypeObject *) metaclass->tp_alloc(metaclass, 0);
562 auto metaclass = rec.metaclass.ptr() ? (PyTypeObject *) rec.metaclass.ptr() local
565 auto heap_type = (PyHeapTypeObject *) metaclass
[all...]
H A Dinternals.h19 inline PyObject *make_object_base_type(PyTypeObject *metaclass);
/gem5/ext/pybind11/tests/
H A Dtest_methods_and_attributes.cpp341 py::class_<MetaclassOverride>(m, "MetaclassOverride", py::metaclass((PyObject *) &PyType_Type))

Completed in 15 milliseconds