Searched refs:self (Results 251 - 275 of 275) sorted by relevance

<<11

/gem5/ext/pybind11/tests/
H A Dtest_multiple_inheritance.cpp213 .def("b", [](B *self) { return self; });
215 .def("c0", [](C0 *self) { return self; });
217 .def("c1", [](C1 *self) { return self; });
H A Dtest_call_policies.py111 def __init__(self):
112 m.Parent.__init__(self)
113 m.Child.__init__(self)
H A Dtest_callbacks.py33 def double(self, val):
114 def __init__(self, value):
115 self.value = value
H A Dtest_builtin_casters.py294 def __init__(self, x):
295 self.x = x
297 def __nonzero__(self):
298 return self.x
300 def __bool__(self):
301 return self.x
H A Dtest_numpy_array.cpp143 .def("__repr__", [](const DtypeCheck& self) {
145 self.numpy, self.pybind11);
153 .def("__repr__", [](const DtypeSizeCheck& self) {
155 self.name, self.size_cpp, self.size_numpy, self.dtype);
H A Dtest_class.py34 get_value(self: m.UserType) -> int
54 __init__(self: m.class_.NestBase) -> None
57 g(self: m.class_.NestBase, arg0: m.class_.NestBase.Nested) -> None
60 __init__(self: m.class_.NestBase.Nested) -> None
63 fn(self: m.class_.NestBase.Nested, arg0: int, arg1: m.class_.NestBase, arg2: m.class_.NestBase.Nested) -> None
66 fa(self: m.class_.NestBase.Nested, a: int, b: m.class_.NestBase, c: m.class_.NestBase.Nested) -> None
215 def __init__(self):
216 m.ProtectedB.__init__(self)
218 def foo(self):
H A Dtest_sequences_and_iterators.cpp218 .def(py::self == py::self)
219 .def(py::self != py::self)
220 // Could also define py::self + py::self for concatenation, etc.
H A Dtest_methods_and_attributes.py178 def check_self(self):
179 assert self is m.TestProperties
218 "(self: pybind11_tests.methods_and_attributes.ExampleMandA, arg0: int, arg1: int)"
H A Dtest_smart_ptr.cpp310 .def("get", [](const HolderWithAddressOf &self) { return self.get(); })
H A Dtest_factory_constructors.cpp186 .def("__init__", [](TestFactory3 &self, std::string v) { new (&self) TestFactory3(v); }) // placement-new ctor
/gem5/configs/topologies/
H A DMeshDirCorners_XY.py46 def __init__(self, controllers):
47 self.nodes = controllers
49 def makeTopology(self, options, network, IntLink, ExtLink, Router):
50 nodes = self.nodes
218 def registerTopology(self, options):
/gem5/src/base/
H A Dstatistics.hh234 Derived &self() { return *static_cast<Derived *>(this); } function in class:Stats::DataWrap
258 auto info = new Info(self());
284 return this->self();
298 return this->self();
315 return this->self();
327 return this->self();
339 return this->self();
353 return this->self();
381 Derived &self = this->self(); local
418 Derived &self = this->self(); local
429 Derived &self = this->self(); local
456 Derived &self = this->self(); local
468 Derived &self = this->self(); local
[all...]
/gem5/util/
H A Dcheckpoint_aggregator.py38 def __init__(self):
39 ConfigParser.__init__(self)
41 def optionxform(self, optionstr):
/gem5/src/arch/x86/bios/
H A DIntelMP.py73 def add_entry(self, entry):
75 self.base_entries.append(entry)
77 self.ext_entries.append(entry)
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64ui/
H A Dfence_i.S7 # Test self-modifying code and the fence.i instruction.
/gem5/src/dev/pci/
H A DPciHost.py67 def pciFdtAddr(self, bus=0, device=0, function=0, register=0, space=0,
/gem5/src/dev/net/
H A DEthernet.py51 def __init__(self, desc):
52 super(EtherInt, self).__init__(ETHERNET_ROLE, desc)
55 def __init__(self, desc):
56 super(VectorEtherInt, self).__init__(ETHERNET_ROLE, desc)
/gem5/src/sim/
H A DProcess.py39 def map(self, vaddr, paddr, size, cacheable=False):
/gem5/ext/pybind11/include/pybind11/
H A Doperators.h15 # pragma clang diagnostic ignored "-Wunsequenced" // multiple unsequenced modifications to 'self' (when using def(py::self OP Type()))
41 static const self_t self = self_t(); variable
47 inline self_t __self() { return self; }
162 using detail::self;
H A Dstl_bind.h77 cl.def(self == self);
78 cl.def(self != self);
H A Dattr.h360 r->args.emplace_back("self", nullptr, handle(), true /*convert*/, false /*none not allowed*/);
369 r->args.emplace_back("self", nullptr /*descr*/, handle() /*parent*/, true /*convert*/, false /*none not allowed*/);
487 size_t self = constexpr_sum(std::is_same<is_method, Extra>::value...)>
489 return named == 0 || (self + named + has_args + has_kwargs) == nargs;
H A Dpybind11.h238 signature += "self";
260 // A new-style `__init__` takes `self` as `value_and_holder`.
424 static PyObject *dispatcher(PyObject *self, PyObject *args_in, PyObject *kwargs_in) { argument
428 const function_record *overloads = (function_record *) PyCapsule_GetPointer(self, nullptr),
444 PyErr_SetString(PyExc_TypeError, "__init__(self, ...) called with invalid `self` argument");
501 // 0. Inject new-style `self` argument
725 // For a constructor, rewrite `(self: Object, arg0, ...) -> NoneType` as `Object(arg0, ...)`
727 size_t start = sig.find('(') + 7; // skip "(self: "
2025 handle self local
[all...]
H A Dpytypes.h845 auto& self = const_cast<iterator &>(*this); local
846 self.advance();
/gem5/tests/
H A Dtests.py51 def _fill_text(self, text, width, indent):
53 super(ParagraphHelpFormatter, self)._fill_text(p, width, indent) \
/gem5/src/cpu/minor/
H A DMinorCPU.py290 def addCheckerCpu(self):

Completed in 59 milliseconds

<<11