Searched refs:handle (Results 26 - 47 of 47) sorted by relevance

12

/gem5/ext/pybind11/tests/
H A Dtest_sequences_and_iterators.cpp38 auto assert_equal = [&checks](py::handle a, py::handle b) {
324 return std::count_if(o.begin(), o.end(), [](py::handle h) { return h.is_none(); });
328 auto it = std::find_if(o.begin(), o.end(), [](py::handle h) { return h.is_none(); });
333 return std::count_if(d.begin(), d.end(), [](std::pair<py::handle, py::handle> p) {
H A Dtest_eigen.cpp272 m.def("cpp_copy", [](py::handle m) { return m.cast<Eigen::MatrixXd>()(1, 0); });
273 m.def("cpp_ref_c", [](py::handle m) { return m.cast<Eigen::Ref<Eigen::MatrixXd>>()(1, 0); });
274 m.def("cpp_ref_r", [](py::handle m) { return m.cast<Eigen::Ref<MatrixXdR>>()(1, 0); });
275 m.def("cpp_ref_any", [](py::handle m) { return m.cast<py::EigenDRef<Eigen::MatrixXd>>()(1, 0); });
H A Dtest_factory_constructors.cpp168 .def(py::init([](py::handle, int v, py::handle) { return TestFactoryHelper::construct1(v); }))
H A Dtest_stl.cpp201 static_assert(std::is_same<py::detail::variant_caster_visitor::result_type, py::handle>::value,
H A Dtest_numpy_array.cpp117 template <typename T, typename T2> py::handle auxiliaries(T &&r, T2 &&r2) {
H A Dtest_numpy_dtypes.cpp344 for (const py::handle &d : {
/gem5/src/arch/x86/bios/
H A Dsmbios.hh83 uint16_t handle; member in class:X86ISA::SMBios::SMBiosStructure
H A Dsmbios.cc85 uint16_t handleGuest = X86ISA::htog(handle);
92 SimObject(p), type(_type), handle(0), stringFields(false)
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_wait.cpp373 sc_process_b* handle = cpi->process_handle; local
374 handle->file = file;
375 handle->lineno = lineno;
/gem5/ext/pybind11/include/pybind11/
H A Dnumpy.h555 const void *ptr = nullptr, handle base = handle()) {
591 array(const pybind11::dtype &dt, ShapeContainer shape, const void *ptr = nullptr, handle base = handle())
595 array(const pybind11::dtype &dt, T count, const void *ptr = nullptr, handle base = handle())
599 array(ShapeContainer shape, StridesContainer strides, const T *ptr, handle base = handle())
603 array(ShapeContainer shape, const T *ptr, handle base = handle())
[all...]
H A Dembed.h148 handle builtins(PyEval_GetBuiltins());
H A Dstl_bind.h134 for (handle h : it)
152 for (handle h : it) {
415 class_<Vector, holder_type> bind_vector(handle scope, std::string const &name, Args&&... args) {
576 class_<Map, holder_type> bind_map(handle scope, const std::string &name, Args&&... args) {
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_port.cpp90 sc_process_b* handle; member in struct:sc_core::sc_bind_ef
101 : handle( handle_ ),
494 p->handle->add_static_event( event );
504 p->handle->add_static_event( event );
/gem5/ext/testlib/
H A Dlog.py134 handler.handle(record)
155 def handle(self, record): member in class:Handler
/gem5/ext/googletest/googletest/test/
H A Dgtest-death-test_test.cc1162 HANDLE handle = ::CreateEvent(NULL, FALSE, FALSE, NULL); local
1163 ASSERT_NE(INVALID_HANDLE_VALUE, handle);
1165 // Tests that the AutoHandle is correctly initialized with a handle.
1166 testing::internal::AutoHandle auto_handle(handle);
1167 EXPECT_EQ(handle, auto_handle.Get());
1170 // Note that this cannot verify whether the original handle is closed.
1174 // Tests that Reset assigns the new handle.
1175 // Note that this cannot verify whether the original handle is closed.
1176 handle = ::CreateEvent(NULL, FALSE, FALSE, NULL);
1177 ASSERT_NE(INVALID_HANDLE_VALUE, handle);
[all...]
/gem5/ext/googletest/googletest/src/
H A Dgtest-port.cc186 AutoHandle::AutoHandle(Handle handle) argument
187 : handle_(handle) {}
201 void AutoHandle::Reset(HANDLE handle) { argument
202 // Resetting with the same handle we already own is invalid.
203 if (handle_ != handle) {
207 handle_ = handle;
210 << "Resetting a valid handle to itself is likely a programmer error "
217 // invalid handle.
488 // Holds the thread id and thread handle that we pass from
493 // The returned handle wil
[all...]
/gem5/ext/pybind11/include/pybind11/detail/
H A Dinit.h20 bool load(handle h, bool) {
106 // class gets to handle the destruction however it likes.
292 enable_if_t<std::is_convertible<O, handle>::value, int> = 0>
H A Dclass.h106 /** Types with static properties need to handle `Type.static_prop = x` in a specific way.
203 for (handle h : reinterpret_borrow<tuple>(tinfo->type->tp_bases)) {
282 msg += handle((PyObject *) type).attr("__module__").cast<std::string>() + ".";
H A Dinternals.h246 auto builtins = handle(PyEval_GetBuiltins());
/gem5/ext/ply/ply/
H A Dlex.py493 handle = ldict.get(f,None)
494 if type(handle) in (types.FunctionType, types.MethodType):
495 lexindexfunc[i] = (handle,toknames[f])
497 elif handle is not None:
/gem5/ext/pybind11/tests/test_embed/
H A Dtest_interpreter.cpp99 auto builtins = py::handle(PyEval_GetBuiltins());
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-port.h1509 // Provides leak-safe Windows kernel handle ownership.
1520 explicit AutoHandle(Handle handle);
1526 void Reset(Handle handle);
1529 // Returns true iff the handle is a valid handle object that can be closed.

Completed in 60 milliseconds

12