Searched refs:object (Results 51 - 75 of 159) sorted by relevance

1234567

/gem5/ext/pybind11/tests/
H A Dtest_pytypes.cpp42 m.def("set_contains", [](py::set set, py::object key) {
60 m.def("dict_contains", [](py::dict dict, py::object val) {
70 m.def("str_from_object", [](const py::object& obj) { return py::str(obj); });
71 m.def("repr_from_object", [](const py::object& obj) { return py::repr(obj); });
113 m.def("accessor_api", [](py::object o) {
124 d["operator[object]"] = o.attr("d")["operator[object]"_s];
127 d["attr(object)"] = o.attr("sub").attr("attr_obj");
285 m.def("hash_function", [](py::object obj) { return py::hash(obj); });
287 m.def("test_number_protocol", [](py::object
[all...]
H A Dtest_sequences_and_iterators.cpp193 py::keep_alive<0, 1>() /* Essential: keep object alive while iterator exists */)
224 // Interface of a map-like object that isn't (directly) an unordered_map, but provides some basic
283 PySequenceIterator(const Sequence &seq, py::object ref) : seq(seq), ref(ref) { }
292 py::object ref; // keep a reference
300 On the actual Sequence object, the iterator would be constructed as follows:
301 .def("__iter__", [](py::object s) { return PySequenceIterator(s.cast<const Sequence &>(), s); })
305 m.def("object_to_list", [](py::object o) {
323 m.def("count_none", [](py::object o) {
327 m.def("find_none", [](py::object o) {
H A Dtest_numpy_array.cpp213 .def("numpy_view", [](py::object &obj) {
224 sm.def("isinstance_untyped", [](py::object yes, py::object no) {
227 sm.def("isinstance_typed", [](py::object o) {
239 sm.def("converting_constructors", [](py::object o) {
279 sm.def("issue685", [](py::object) { return "other"; });
349 // Issue #785: Uninformative "Unknown internal error" exception when constructing array from empty object:
350 sm.def("array_fail_test", []() { return py::array(py::object()); });
351 sm.def("array_t_fail_test", []() { return py::array_t<double>(py::object()); });
H A Dtest_kwargs_and_defaults.cpp68 m.def("arg_refcount_o", [](py::object o) { GC_IF_NEEDED; return o.ref_count(); });
77 m.def("mixed_args_refcount", [](py::object o, py::args a) {
H A Dpybind11_tests.cpp54 .def_static("get", (ConstructorStats &(*)(py::object)) &ConstructorStats::get, py::return_value_policy::reference_internal)
/gem5/util/minorview/
H A Dpoint.py38 class Point(object):
/gem5/util/stats/
H A Dchart.py30 class ChartOptions(object):
H A Ddbinit.py31 class MyDB(object):
/gem5/ext/testlib/
H A Dquery.py34 class QueryRunner(object):
H A Dtest.py49 class TestCase(object):
77 TestCase implementation which uses a callable object as a test.
H A Dfixture.py46 class Fixture(object):
H A Dresult.py65 class InternalTestResult(object, _CommonMetadataMixin):
80 class InternalSuiteResult(object, _CommonMetadataMixin):
107 class InternalLibraryResults(object, _CommonMetadataMixin):
171 class XMLElement(object):
195 class XMLAttribute(object):
H A Dsandbox.py56 class IoManager(object):
140 class Status(object):
170 class Sandbox(object):
/gem5/util/systemc/gem5_within_systemc/
H A Dsc_gem5_control.hh69 * object (and its children). New Gem5Systems are created by
106 virtual void setParam(const std::string &object,
/gem5/configs/common/
H A DSysPaths.py38 class PathSearchFunc(object):
/gem5/src/python/
H A Dimporter.py35 class CodeImporter(object):
/gem5/src/python/m5/util/
H A Dterminal.py84 class ColorStrings(object):
H A Dpybind.py43 class PyBindExport(object):
/gem5/tests/configs/
H A Dx86_generic.py48 class LinuxX86SystemBuilder(object):
/gem5/src/python/m5/
H A Doptions.py37 class nodefault(object): pass
39 class splitter(object):
/gem5/tests/gem5/
H A Dverifier.py38 class Verifier(object):
110 __ignore_regex_sentinel = object()
/gem5/site_scons/gem5_scons/
H A D__init__.py60 class Transform(object):
/gem5/ext/googletest/googletest/scripts/
H A Drelease_docs.py89 class WikiBrancher(object):
/gem5/ext/ply/ply/
H A Dlex.py69 class LexToken(object):
75 # This object is a stand-in for a logging object created by the
78 class PlyLogger(object):
94 class NullLogger(object):
141 def clone(self,object=None):
144 # If the object parameter has been supplied, it means we are attaching the
145 # lexer to a new object. In this case, we have to rebind all methods in
148 if object:
158 newfindex.append((getattr(object,
[all...]
/gem5/util/style/
H A Dregion.py27 class _neg_inf(object):
28 '''This object always compares less than any other object'''
38 class _pos_inf(object):
39 '''This object always compares greater than any other object'''
141 class Regions(object):

Completed in 26 milliseconds

1234567