Searched refs:reference (Results 1 - 25 of 25) sorted by relevance

/gem5/src/systemc/tlm_core/2/quantum/
H A Dglobal_quantum_python.cc44 pybind11::return_value_policy::reference)
/gem5/ext/pybind11/tests/
H A Dtest_stl_binders.cpp81 m.def("get_vnc", &one_to_n<std::vector<E_nc>>, py::return_value_policy::reference);
83 m.def("get_dnc", &one_to_n<std::deque<E_nc>>, py::return_value_policy::reference);
85 m.def("get_mnc", &times_ten<std::map<int, E_nc>>, py::return_value_policy::reference);
87 m.def("get_umnc", &times_ten<std::unordered_map<int, E_nc>>, py::return_value_policy::reference);
H A Dtest_copy_move.cpp154 d["MoveOrCopyInt"] = py::cast(mc, py::return_value_policy::reference);
155 d["MoveOnlyInt"] = py::cast(mo, py::return_value_policy::reference);
156 d["CopyOnlyInt"] = py::cast(co, py::return_value_policy::reference);
192 }, py::return_value_policy::reference);
H A Dtest_factory_constructors.cpp222 .def_static("get_cstats", &ConstructorStats::get<TestFactory6>, py::return_value_policy::reference)
223 .def_static("get_alias_cstats", &ConstructorStats::get<PyTF6>, py::return_value_policy::reference)
257 .def_static("get_cstats", &ConstructorStats::get<TestFactory7>, py::return_value_policy::reference)
258 .def_static("get_alias_cstats", &ConstructorStats::get<PyTF7>, py::return_value_policy::reference)
H A Dtest_eigen.cpp25 // Sets/resets a testing reference matrix to have values of 10*r + c, where r and c are the
61 // reference is referencing rows/columns correctly).
140 }, py::return_value_policy::reference);
146 }, py::return_value_policy::reference);
153 }, py::return_value_policy::reference);
160 }, py::return_value_policy::reference);
205 .def("ref", &ReturnTester::ref) // Default for Ref is to reference
H A Dtest_builtin_casters.cpp137 : py::return_value_policy::reference));
H A Dtest_smart_ptr.cpp2 tests/test_smart_ptr.cpp -- binding classes with custom reference counting,
20 // ref<T> is a wrapper for 'Object' which uses intrusive reference counting
96 // Custom object with builtin reference counting (see 'object.h' for the implementation)
169 py::object o2 = py::cast(o, py::return_value_policy::reference);
171 // reference counting even when using the 'reference' RVP
H A Dtest_methods_and_attributes.cpp35 void add2(ExampleMandA &other) { value += other.value; } // passing by reference
36 void add3(const ExampleMandA &other) { value += other.value; } // passing by const reference
41 void add7(int &other) { value += other; } // passing by reference
42 void add8(const int &other) { value += other; } // passing by const reference
47 ExampleMandA &self2() { return *this; } // return by reference
48 const ExampleMandA &self3() { return *this; } // return by const reference
53 int &internal2() { return value; } // return by reference
54 const int &internal3() { return value; } // return by const reference
459 m.def("destruction_tester_cstats", &ConstructorStats::get<DestructionTester>, py::return_value_policy::reference);
/gem5/src/base/
H A Dcircular_queue.hh88 using typename Base::reference;
165 using reference = value_type&;
171 /** Trait reference type
172 * iterator satisfies OutputIterator, therefore reference
174 static_assert(std::is_same<reference, T&>::value,
175 "reference type is not assignable as required");
236 reference operator*()
384 typename std::enable_if<std::is_integral<Idx>::value,reference>::type
491 reference front() { return (*this)[_head]; }
492 reference bac
[all...]
/gem5/src/python/pybind11/
H A Devent.cc66 * Memory management is done using reference counting in Python.
113 py::return_value_policy::reference);
116 py::return_value_policy::reference);
H A Ddebug.cc88 .def("allFlags", &Debug::allFlags, py::return_value_policy::reference)
H A Dstats.cc85 .def("initText", &Stats::initText, py::return_value_policy::reference)
H A Dcore.cc127 py::return_value_policy::reference)
/gem5/src/systemc/ext/utils/
H A Dsc_vector.hh321 typedef typename BaseType::reference reference; typedef in class:sc_core::sc_vector_iter
418 reference
428 reference
666 typename iterator::reference
671 typename const_iterator::reference
677 typename iterator::reference
682 typename const_iterator::reference
/gem5/ext/mcpat/regression/
H A Dverify_output.py76 def withinTolerance(reference, calculated, tolerance = 0.001):
79 upper_bound = reference * (1 + tolerance)
80 lower_bound = reference * (1 - tolerance)
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dast.py413 reference, pointer, array):
419 reference, pointer, array: bools
426 self.reference = reference
438 if self.reference:
487 reference = pointer = array = False
502 reference, pointer, array))
515 reference = pointer = array = False
518 reference = pointer = array = False
522 reference
[all...]
H A Dgmock_class.py84 if node.return_type.reference:
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_vector.h275 typedef typename base_type::reference reference; typedef in class:sc_core::sc_vector_iter
313 reference operator*() const
317 reference operator[]( difference_type n ) const
453 typedef typename iterator::reference reference; typedef in class:sc_core::sc_vector_assembly
455 typedef typename const_iterator::reference const_reference;
482 reference operator[]( size_type idx )
484 reference at( size_type idx )
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h152 /// Return the object's current reference count
164 Holds a reference to a Python object (no reference counting)
167 ``PyObject *`` in Python's C API). It does not perform any automatic reference
171 The `object` class inherits from `handle` and adds automatic reference
186 Manually increase the reference count of the Python object. Usually, it is
188 this function automatically. Returns a reference to itself.
193 Manually decrease the reference count of the Python object. Usually, it is
195 this function automatically. Returns a reference to itself.
221 Holds a reference t
[all...]
H A Deigen.h199 // For a reference type (e.g. Ref<MatrixXd>) we have other constraints that might need to be
200 // satisfied: writeable=True (for a mutable reference), and, depending on the map's stride
229 // reference the Eigen object's data with `base` as the python-registered base class (if omitted,
240 // array that references the encapsulated data with a python-side reference to the capsule to tie
275 // Allocate the new type, then build a numpy reference into it
304 case return_value_policy::reference:
316 // Normal returned non-reference, non-const value:
320 // If you return a non-reference const, we mark the numpy array readonly:
324 // lvalue reference return; default (automatic) becomes copy
330 // const lvalue reference retur
[all...]
H A Dpybind11.h873 PyModule_AddObject(ptr(), name, obj.inc_ref().ptr() /* steals a reference */);
1206 def_property_static(name, fget, fset, return_value_policy::reference, extra...);
1213 def_property_readonly_static(name, fget, return_value_policy::reference, extra...);
1230 /// Uses return_value_policy::reference by default
1233 return def_property_readonly_static(name, cpp_function(fget), return_value_policy::reference, extra...);
1259 /// Uses return_value_policy::reference by default
1262 return def_property_static(name, cpp_function(fget), fset, return_value_policy::reference, extra...);
1620 patient.inc_ref(); /* reference patient and leak the weak reference */
1647 // New cache entry created; set up a weak reference t
[all...]
H A Dcast.h528 case return_value_policy::reference:
774 // (we specifically check for: has `value_type` and `reference` with `reference = value_type&`): if
778 std::is_same<typename Container::value_type &, typename Container::reference>,
1586 // - T needs to be a non-const, non-pointer, non-reference type
1613 // reference or pointer to a local variable of the type_caster. Basically, only
1614 // non-reference/pointer `type`s and reference/pointers from a type_caster_generic are safe;
1615 // everything else returns a reference/pointer to a local variable.
1664 "Unable to cast type to reference
[all...]
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-param-util.h126 typedef const T& reference; typedef in class:testing::internal::ParamIterator
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h489 // Constructs a null object that doesn't reference any expectation.
500 // method on the ExpectationBase objects they reference. Therefore
501 // Expectation must receive a *non-const* reference to the
1292 // Wrapper type for generically holding an ordinary value or lvalue reference.
1293 // If T is not a reference type, it must be copyable or movable.
1304 // Constructs a wrapper from the given value/reference.
1309 // Unwraps and returns the underlying value/reference, exactly as
1314 // Provides nondestructive access to the underlying value/reference.
1315 // Always returns a const reference (more precisely,
1326 // Specialization for lvalue reference type
[all...]
/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h310 /** As above, but use policy return_value_policy::reference when the return
318 object’s reference count reaches zero. Undefined behavior ensues when
338 reference, member in class:return_value_policy
342 return_value_policy::reference policy. In contrast to that policy, the
346 reference relationship that ensures that the parent cannot be garbage
349 return_value_policy::reference and the keep_alive call policy */
795 // Dereferencing obtains a reference to the underlying vector

Completed in 71 milliseconds