Searched refs:function (Results 51 - 72 of 72) sorted by relevance

123

/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-generated-function-mockers.h2 // pump.py gmock-generated-function-mockers.h.pump
38 // This file implements function mockers of various arities.
332 // GMOCK_RESULT_(tn, F) expands to the result type of function type F.
340 // The type of argument N of the given function type.
345 // The matcher type for argument N of the given function type.
863 // std::function<F> callbacks. To do so, use AsStdFunction() method
864 // to create std::function proxy forwarding to original object's Call.
883 std::function<R()> AsStdFunction() {
902 std::function<R(A0)> AsStdFunction() {
921 std::function<
[all...]
H A Dgmock-generated-actions.h48 // function or method with the unpacked values, where F is a function
57 static R Invoke(Function function, const ::testing::tuple<>&) { argument
58 return function();
73 static R Invoke(Function function, const ::testing::tuple<A1>& args) { argument
74 return function(get<0>(args));
89 static R Invoke(Function function, const ::testing::tuple<A1, A2>& args) { argument
90 return function(get<0>(args), get<1>(args));
105 static R Invoke(Function function, const ::testing::tuple<A1, A2, A3>& args) { argument
106 return function(ge
122 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4>& args) argument
142 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5>& args) argument
162 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5, A6>& args) argument
182 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7>& args) argument
204 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8>& args) argument
227 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9>& args) argument
252 Invoke(Function function, const ::testing::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>& args) argument
[all...]
/gem5/ext/systemc/src/sysc/qt/md/
H A Dhppa.s37 ; arg0: ptr to function (helper) to call once curr is suspended
150 copy %r17,%arg1 ; ... user function pt.
151 copy %r16,%arg2 ; ... user function userf.
153 copy %r15,%r22 ; function to be called by $$dyncall
169 ; Next, call the user's function with all arguments.
184 ; from the user's function. It is an error for `cleanup' to return.
191 ; Because the startup function may damage the fixed arguments
H A Dksr1.s31 # and a pointer to a constant block. The address of function `f' is
41 # Note, by the way, that a pointer to a function is passed as a
73 # %i2 -- control block of helper function to run
/gem5/ext/googletest/googletest/test/
H A Dgtest_filter_unittest.py207 def InvokeWithModifiedEnv(extra_env, function, *args, **kwargs):
208 """Runs the given function and arguments in a modified environment."""
212 return function(*args, **kwargs)
H A Dgtest-death-test_test.cc119 // 'unreachable code' warning for code following this function, unless
125 void DieInside(const ::std::string& function) { argument
126 DieWithMessage("death inside " + function + "().");
139 // A static member function that's expected to die.
153 // A class with a member function that may die.
158 // A member function that may die.
169 // A global function that's expected to die.
172 // A non-void function that's expected to die.
178 // A unary function that may die.
184 // A binary function tha
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h20 # pragma warning disable 1786 // function "strdup" was declared deprecated
55 /// Wraps an arbitrary C++ function/method/lambda function/.. into a callable Python object
56 class cpp_function : public function {
61 /// Construct a cpp_function from a vanilla function pointer
67 /// Construct a cpp_function from a lambda function (possibly with internal state)
89 /// Return the function name
104 /* Store the function including any extra state it might have (e.g. a lambda capture object) */
107 /* Store the capture object directly in the function record if there is enough space */
127 /* Type casters for the function argument
[all...]
H A Dpytypes.h88 or ``list`` for a function call. Applying another * to the result yields
89 ** unpacking, e.g. to unpack a dict as function keyword arguments.
98 Assuming the Python object is a function or implements the ``__call__``
99 protocol, ``operator()`` invokes the underlying function, passing an
104 function will throw a `cast_error` exception. When the Python function
188 this function automatically. Returns a reference to itself.
195 this function automatically. Returns a reference to itself.
244 object's reference count. The function returns a raw handle to the original
291 The target type ``T`` must be `object` or one of its derived classes. The function
1294 class function : public object { class in inherits:object
[all...]
/gem5/ext/testlib/
H A Dhelper.py153 def cacheresult(function, typed=False):
162 make_key = _make_key # build a key from the function arguments
170 result = function(*args, **kwds)
/gem5/src/sim/
H A Deventq.hh80 //! index. The function allocates a new queue in case one
185 * process() member function.
287 // This function isn't really useful if TRACING_ON is not defined
373 * This member function is invoked when the event is processed
534 //! owning thread, should call this function instead of insert().
667 * This function isn't needed by the usual gem5 event loop but may
679 * function for replacing the head of the event queue, so that a
822 std::function<void(void)> callback;
826 EventFunctionWrapper(const std::function<void(void)> &callback,
/gem5/src/systemc/core/
H A Dprocess.cc69 Process::forEachKid(const std::function<void(Process *)> &work)
/gem5/src/mem/cache/
H A Dmshr.hh217 * the flags of this TargetList. When the function returns the
224 * Add the specified packet in the TargetList. This function
265 * Add the specified packet in the TargetList. This function
380 void promoteIf(const std::function<bool (Target &)>& pred);
452 * received response. This function returns the targets list
H A Dmshr.cc569 MSHR::promoteIf(const std::function<bool (Target &)>& pred)
/gem5/src/gpu-compute/
H A Dbrig_object.cc56 std::vector<std::function<HsaObject*(const std::string&, int, uint8_t*)>>
180 // object file to create stubs, but the function calls will
182 warn("HSA function invocations are unsupported.\n");
H A Dgpu_dyn_inst.hh352 * using continuations (i.e., a function pointer with an object associated
355 * continuation in the GPUDynInst to a function that generate a
361 std::function<void(GPUStaticInst*, GPUDynInstPtr)> execContinuation;
/gem5/src/mem/ruby/network/
H A DMessageBuffer.cc265 MessageBuffer::registerDequeueCallback(std::function<void()> callback)
/gem5/ext/pybind11/tests/
H A Dtest_builtin_casters.cpp143 m.def("refwrap_call_iiw", [](IncType &w, py::function f) {
H A Dtest_methods_and_attributes.cpp193 // Issues #854, #910: incompatible function args when member function/pointer is in unregistered base class
307 [](py::object cls, py::function f) { f(cls); });
427 // Issues #854/910: incompatible function args when member function/pointer is in unregistered
/gem5/src/dev/arm/
H A Dgic_v3_its.hh466 * the command (like the name) and the function object implementing
471 using ExecFn = std::function<void(ItsCommand*, Yield&, CommandEntry&)>;
/gem5/ext/googletest/googlemock/test/
H A Dgmock-generated-function-mockers_test.cc34 // This file tests the function mocker classes.
36 #include "gmock/gmock-generated-function-mockers.h"
51 // mock for a function with const arguments, so we don't test such
127 // Makes sure that a mock function parameter can be named.
132 // Makes sure that a mock function parameter can be unnamed.
145 // Tests that the function return type can contain unprotected comma.
170 // Tests that the function return type can contain unprotected comma.
190 // Tests mocking a void-returning function.
196 // Tests mocking a nullary function.
206 // Tests mocking a unary function
[all...]
H A Dgmock-generated-actions_test.cc169 // Tests using InvokeArgument with a nullary function.
175 // Tests using InvokeArgument with a unary function.
181 // Tests using InvokeArgument with a 5-ary function.
195 // Tests using InvokeArgument with a 6-ary function.
209 // Tests using InvokeArgument with a 7-ary function.
218 // Tests using InvokeArgument with a 8-ary function.
227 // Tests using InvokeArgument with a 9-ary function.
236 // Tests using InvokeArgument with a 10-ary function.
246 // Tests using InvokeArgument with a function that takes a pointer argument.
253 // Tests using InvokeArgument with a function tha
[all...]
H A Dgmock-matchers_test.cc456 // This function verifies that MakePolymorphicMatcher() returns a
1017 // gmock-matchers.h: ambiguous access to overloaded function
1051 const Matcher<std::function<void()>> m = IsNull();
1053 EXPECT_TRUE(m.Matches(std::function<void()>()));
1099 const Matcher<std::function<void()>> m = NotNull();
1102 EXPECT_FALSE(m.Matches(std::function<void()>()));
2428 // The following predicate function and predicate functor are for
2432 // type of this function is not bool. It's OK as Truly() accepts any
2433 // unary function or functor whose return type can be implicitly
2734 // matcher_maker is a pointer to a function whic
[all...]

Completed in 50 milliseconds

123