Home
last modified time | relevance | path

Searched refs:functor (Results 1 – 25 of 81) sorted by relevance

1234

/external/webrtc/webrtc/base/
Dcallback.h75 template <class T> Callback0(const T& functor) in Callback0() argument
76 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback0()
90 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
105 template <class T> Callback1(const T& functor) in Callback1() argument
106 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback1()
120 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
136 template <class T> Callback2(const T& functor) in Callback2() argument
137 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} in Callback2()
151 explicit HelperImpl(const T& functor) : functor_(functor) {} in HelperImpl()
168 template <class T> Callback3(const T& functor) in Callback3() argument
[all …]
Dasyncinvoker.h77 void AsyncInvoke(Thread* thread, const FunctorT& functor, uint32_t id = 0) {
79 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor));
87 const FunctorT& functor,
91 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor));
98 const FunctorT& functor,
104 this, Thread::Current(), functor, callback, callback_host));
112 const FunctorT& functor,
118 this, Thread::Current(), functor, callback, callback_host));
166 bool AsyncInvoke(const FunctorT& functor, uint32_t id = 0) {
170 invoker_.AsyncInvoke<ReturnT, FunctorT>(thread_, functor, id);
[all …]
Dmessagehandler.h41 explicit FunctorMessageHandler(const FunctorT& functor) in FunctorMessageHandler() argument
42 : functor_(functor) {} in FunctorMessageHandler()
58 explicit FunctorMessageHandler(const FunctorT& functor) : functor_(functor) {} in FunctorMessageHandler() argument
71 explicit FunctorMessageHandler(const FunctorT& functor) in FunctorMessageHandler() argument
72 : functor_(functor) {} in FunctorMessageHandler()
Dasyncinvoker-inl.h43 explicit FireAndForgetAsyncClosure(const FunctorT& functor) in FireAndForgetAsyncClosure() argument
44 : functor_(functor) {} in FireAndForgetAsyncClosure()
84 const FunctorT& functor, in NotifyingAsyncClosure() argument
88 functor_(functor), in NotifyingAsyncClosure()
112 const FunctorT& functor, in NotifyingAsyncClosure() argument
116 functor_(functor) { in NotifyingAsyncClosure()
Dbind_unittest.cc168 auto functor = Bind(&LifeTimeCheck::NullaryVoid, &object); in TEST() local
184 auto functor = Bind(&LifeTimeCheck::NullaryVoid, scoped_object); in TEST() local
213 auto functor = in TEST() local
234 auto functor = Bind(&Ref, x); in TEST() local
235 EXPECT_NE(&x, functor()); in TEST()
Dbind.h.pump19 // Bind(); the returned functor knows nothing about the lifetime of a non
21 // functor with a destroyed object will surely do bad things.
46 // // The functor passed to AsyncInvoke() will keep this object alive.
53 // auto functor = rtc::Bind(&Bar::Test, bar);
55 // // The functor stores an internal scoped_refptr<Bar>, so this is safe.
56 // functor();
158 Functor$i(const FunctorT& functor$for j [[, P$j p$j]])
159 : functor_(functor)$for j [[,
Dcallback.h.pump76 template <class T> Callback$i(const T& functor)
77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {}
91 explicit HelperImpl(const T& functor) : functor_(functor) {}
Dbind.h149 explicit Functor0(const FunctorT& functor)
150 : functor_(functor) {}
219 Functor1(const FunctorT& functor, P1 p1)
220 : functor_(functor),
304 Functor2(const FunctorT& functor, P1 p1, P2 p2)
305 : functor_(functor),
404 Functor3(const FunctorT& functor, P1 p1, P2 p2, P3 p3)
405 : functor_(functor),
519 Functor4(const FunctorT& functor, P1 p1, P2 p2, P3 p3, P4 p4)
520 : functor_(functor),
[all …]
Dthread.h159 ReturnT Invoke(const FunctorT& functor) { in Invoke() argument
161 FunctorMessageHandler<ReturnT, FunctorT> handler(functor); in Invoke()
/external/eigen/unsupported/test/
DNumericalDiff.cpp75 my_functor functor; in test_forward() local
80 functor.actual_df(x, actual_jac); in test_forward()
84 NumericalDiff<my_functor> numDiff(functor); in test_forward()
96 my_functor functor; in test_central() local
101 functor.actual_df(x, actual_jac); in test_central()
104 NumericalDiff<my_functor,Central> numDiff(functor); in test_central()
DNonLinearOptimization.cpp177 lmder_functor functor; in testLmder1() local
178 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder1()
206 lmder_functor functor; in testLmder() local
207 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder()
291 hybrj_functor functor; in testHybrj1() local
292 HybridNonLinearSolver<hybrj_functor> solver(functor); in testHybrj1()
324 hybrj_functor functor; in testHybrj() local
325 HybridNonLinearSolver<hybrj_functor> solver(functor); in testHybrj()
380 hybrd_functor functor; in testHybrd1() local
381 HybridNonLinearSolver<hybrd_functor> solver(functor); in testHybrd1()
[all …]
Dlevenberg_marquardt.cpp75 lmder_functor functor; in testLmder1() local
76 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder1()
104 lmder_functor functor; in testLmder() local
105 LevenbergMarquardt<lmder_functor> lm(functor); in testLmder()
177 lmdif_functor functor; in testLmdif1() local
179 info = LevenbergMarquardt<lmdif_functor>::lmdif1(functor, x, &nfev); in testLmdif1()
186 functor(x, fvec); in testLmdif1()
207 lmdif_functor functor; in testLmdif() local
208 NumericalDiff<lmdif_functor> numDiff(functor); in testLmdif()
293 chwirut2_functor functor; in testNistChwirut2() local
[all …]
/external/skia/include/private/
DSkTSearch.h79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; in SkTSearch() local
80 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
91 static SkTLessFunctor<T> functor; in SkTSearch() local
92 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; in SkTSearch() local
105 return SkTSearch(base, count, target, elemSize, functor); in SkTSearch()
/external/libchrome/base/
Dbind_internal.h150 Invoke(const Functor& functor, RunArgs&&... args) {
151 return functor(std::forward<RunArgs>(args)...);
281 static inline ReturnType MakeItSo(Functor&& functor, RunArgs&&... args) {
283 return Traits::Invoke(std::forward<Functor>(functor),
297 static inline void MakeItSo(Functor&& functor,
303 Traits::Invoke(std::forward<Functor>(functor),
332 static inline R RunImpl(Functor&& functor,
347 std::forward<Functor>(functor),
365 IsNull(const Functor& functor) {
366 return !functor;
[all …]
Dbind.h29 Functor&& functor, in Bind() argument
36 return CallbackType(new BindState(std::forward<Functor>(functor), in Bind()
/external/eigen/unsupported/Eigen/src/NonLinearOptimization/
DLevenbergMarquardt.h56 … : functor(_functor) { nfev = njev = iter = 0; fnorm = gnorm = 0.; useExternalScaling=false; } in LevenbergMarquardt()
89 FunctorType &functor,
119 FunctorType &functor;
141 m = functor.values(); in lmder1()
174 m = functor.values(); in minimizeInit()
201 if ( functor(x, fvec) < 0) in minimizeInit()
222 Index df_ret = functor.df(x, fjac); in minimizeOneStep()
287 if ( functor(wa2, wa4) < 0) in minimizeOneStep()
369 m = functor.values(); in lmstr1()
388 m = functor.values(); in minimizeOptimumStorageInit()
[all …]
DHybridNonLinearSolver.h49 : functor(_functor) { nfev=njev=iter = 0; fnorm= 0.; useExternalScaling=false;} in HybridNonLinearSolver()
100 FunctorType &functor;
170 if ( functor(x, fvec) < 0) in solveInit()
198 if ( functor.df(x, fjac) < 0) in solveOneStep()
249 if ( functor(wa2, wa4) < 0) in solveOneStep()
410 if ( functor(x, fvec) < 0) in solveNumericalDiffInit()
441 …if (internal::fdjac1(functor, x, fvec, fjac, parameters.nb_of_subdiagonals, parameters.nb_of_super… in solveNumericalDiffOneStep()
492 if ( functor(wa2, wa4) < 0) in solveNumericalDiffOneStep()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorReductionSycl.h144 Op functor = reducer;
156 …uctionOp<Op, Dims, decltype(device_expr.expr) ,MakeGlobalPointer>(device_expr.expr, dims, functor);
164 …, false>::reduce(device_self_evaluator, red_factor*globalid, red_factor, const_cast<Op&>(functor));
170 …, Op, false>::reduce(device_self_evaluator, red_factor*(rng), remaining, const_cast<Op&>(functor));
206 Op functor = reducer;
219 …uctionOp<Op, Dims, decltype(device_expr.expr) ,MakeGlobalPointer>(device_expr.expr, dims, functor);
227 typename DeiceSelf::CoeffReturnType accum = functor.initialize();
228 …evice_self_evaluator, device_self_evaluator.firstInput(globalid),const_cast<Op&>(functor), &accum);
229 functor.finalize(accum);
DTensorEvaluator.h242 : m_functor(op.functor()), m_argImpl(op.nestedExpression(), device), m_wrapper()
279 NullaryOp functor() const { return m_functor; }
306 : m_functor(op.functor()),
349 UnaryOp functor() const { return m_functor; }
375 : m_functor(op.functor()),
430 BinaryOp functor() const { return m_functor; }
455 : m_functor(op.functor()),
DTensorSyclExtractFunctors.h52 : rhsExpr(expr.impl()), func(expr.functor()) {}
68 : lhsExpr(expr.left_impl()),rhsExpr(expr.right_impl()),func(expr.functor()) {}
86 …xpr(expr.arg1Impl()), arg2Expr(expr.arg2Impl()), arg3Expr(expr.arg3Impl()), func(expr.functor()) {}
/external/eigen/test/
DdenseLM.cpp102 int test_minimizeLM(FunctorType& functor, VectorType& uv) in test_minimizeLM() argument
104 LevenbergMarquardt<FunctorType> lm(functor); in test_minimizeLM()
115 int test_lmder(FunctorType& functor, VectorType& uv) in test_lmder() argument
119 LevenbergMarquardt<FunctorType> lm(functor); in test_lmder()
128 int test_minimizeSteps(FunctorType& functor, VectorType& uv) in test_minimizeSteps() argument
131 LevenbergMarquardt<FunctorType> lm(functor); in test_minimizeSteps()
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLevenbergMarquardt.h122 LevenbergMarquardt(FunctorType& functor) in LevenbergMarquardt() argument
123 : m_functor(functor),m_nfev(0),m_njev(0),m_fnorm(0.0),m_gnorm(0), in LevenbergMarquardt()
138 FunctorType &functor,
368 FunctorType &functor, in lmdif1() argument
375 Index m = functor.values(); in lmdif1()
381 NumericalDiff<FunctorType> numDiff(functor); in lmdif1()
/external/clang/test/SemaTemplate/
Dinstantiate-local-class.cpp170 struct functor { in exec_func() struct
171 functor(Func f) : func(f) {} in exec_func() argument
175 return functor(f); in exec_func()
/external/eigen/Eigen/src/SparseCore/
DSparseCwiseUnaryOp.h31 …explicit unary_evaluator(const XprType& op) : m_functor(op.functor()), m_argImpl(op.nestedExpressi…
85 …explicit unary_evaluator(const XprType& op) : m_functor(op.functor()), m_argImpl(op.nestedExpressi…
/external/clang/test/Parser/
Dobjcxx14-protocol-in-template.mm8 template <typename Functor> void F(Functor functor) {}

1234