/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/utils/ |
callback.hpp | 41 template<typename Functor> 42 R invoke( Functor& f ) { return f(); } 43 template<typename Functor, typename T1> 44 R invoke( Functor& f, T1 t1 ) { return f( t1 ); } 45 template<typename Functor, typename T1, typename T2> 46 R invoke( Functor& f, T1 t1, T2 t2 ) { return f( t1, t2 ); } 47 template<typename Functor, typename T1, typename T2, typename T3> 48 R invoke( Functor& f, T1 t1, T2 t2, T3 t3 ) { return f( t1, t2, t3 ); } 55 template<typename Functor> 56 unused invoke( Functor& f ) { f(); return unused(); [all...] |
/external/ceres-solver/include/ceres/internal/ |
variadic_evaluate.h | 45 // This block of quasi-repeated code calls the user-supplied functor, which may 49 template<typename Functor, typename T, int N0, int N1, int N2, int N3, int N4, 52 static bool Call(const Functor& functor, T const *const *input, T* output) { 53 return functor(input[0], 67 template<typename Functor, typename T, int N0, int N1, int N2, int N3, int N4, 69 struct VariadicEvaluate<Functor, T, N0, N1, N2, N3, N4, N5, N6, N7, N8, 0> { 70 static bool Call(const Functor& functor, T const *const *input, T* output) { 71 return functor(input[0] [all...] |
numeric_diff.h | 50 // Helper templates that allow evaluation of a variadic functor or a 55 bool EvaluateImpl(const CostFunctor* functor, 62 *functor, 70 bool EvaluateImpl(const CostFunctor* functor, 74 return functor->Evaluate(parameters, residuals, NULL); 90 const CostFunctor* functor, 144 functor, parameters, residuals.data(), functor)) { 160 functor, parameters, residuals.data(), functor)) { [all...] |
/external/eigen/unsupported/Eigen/src/NumericalDiff/ |
NumericalDiff.h | 25 * This class allows you to add a method df() to your functor, which will 27 * derivative for the functor. Of course, if you have an analytical form 39 typedef _Functor Functor; 40 typedef typename Functor::Scalar Scalar; 41 typedef typename Functor::InputType InputType; 42 typedef typename Functor::ValueType ValueType; 43 typedef typename Functor::JacobianType JacobianType; 45 NumericalDiff(Scalar _epsfcn=0.) : Functor(), epsfcn(_epsfcn) {} 46 NumericalDiff(const Functor& f, Scalar _epsfcn=0.) : Functor(f), epsfcn(_epsfcn) { [all...] |
/external/eigen/unsupported/Eigen/src/AutoDiff/ |
AutoDiffJacobian.h | 16 template<typename Functor> class AutoDiffJacobian : public Functor 19 AutoDiffJacobian() : Functor() {} 20 AutoDiffJacobian(const Functor& f) : Functor(f) {} 24 AutoDiffJacobian(const T0& a0) : Functor(a0) {} 26 AutoDiffJacobian(const T0& a0, const T1& a1) : Functor(a0, a1) {} 28 AutoDiffJacobian(const T0& a0, const T1& a1, const T2& a2) : Functor(a0, a1, a2) {} 31 InputsAtCompileTime = Functor::InputsAtCompileTime, 32 ValuesAtCompileTime = Functor::ValuesAtCompileTim [all...] |
/external/eigen/unsupported/test/ |
NumericalDiff.cpp | 11 // Generic functor 13 struct Functor 26 Functor() : m_inputs(InputsAtCompileTime), m_values(ValuesAtCompileTime) {} 27 Functor(int inputs, int values) : m_inputs(inputs), m_values(values) {} 34 struct my_functor : Functor<double> 36 my_functor(void): Functor<double>(3,15) {} 75 my_functor functor; local 80 functor.actual_df(x, actual_jac); 84 NumericalDiff<my_functor> numDiff(functor); 96 my_functor functor; local [all...] |
/external/chromium_org/third_party/webrtc/base/ |
messagehandler.h | 34 // Helper class to facilitate executing a functor on a thread. 38 explicit FunctorMessageHandler(const FunctorT& functor) 39 : functor_(functor) {} 54 explicit FunctorMessageHandler(const FunctorT& functor) 55 : functor_(functor) {}
|
callback.h | 76 template <class T> Callback0(const T& functor) 77 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 91 explicit HelperImpl(const T& functor) : functor_(functor) {} 106 template <class T> Callback1(const T& functor) 107 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 121 explicit HelperImpl(const T& functor) : functor_(functor) {} 137 template <class T> Callback2(const T& functor) 138 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} [all...] |
asyncinvoker.h | 33 // invocation and execution of the functor. AsyncInvoker is designed to 74 // Call |functor| asynchronously on |thread|, with no callback upon 78 const FunctorT& functor, 81 new RefCountedObject<FireAndForgetAsyncClosure<FunctorT> >(functor); 85 // Call |functor| asynchronously on |thread|, calling |callback| when done. 88 const FunctorT& functor, 94 this, Thread::Current(), functor, callback, callback_host); 98 // Call |functor| asynchronously on |thread|, calling |callback| when done. 102 const FunctorT& functor, 108 this, Thread::Current(), functor, callback, callback_host) [all...] |
/external/chromium_org/base/ |
bind.h | 56 template <typename Functor> 59 typename internal::FunctorTraits<Functor>::RunnableType, 60 typename internal::FunctorTraits<Functor>::RunType, 63 Bind(Functor functor) { 64 // Typedefs for how to store and run the functor. 65 typedef typename internal::FunctorTraits<Functor>::RunnableType RunnableType; 66 typedef typename internal::FunctorTraits<Functor>::RunType RunType; 72 new BindState(internal::MakeRunnable(functor))); 75 template <typename Functor, typename P1 [all...] |
/external/ceres-solver/internal/ceres/ |
numeric_diff_functor_test.cc | 53 EasyFunctor functor; local 59 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 64 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 72 EasyFunctor functor; local 78 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); 83 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); 91 TranscendentalFunctor functor; local 97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 102 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 110 TranscendentalFunctor functor; local [all...] |
numeric_diff_cost_function_test.cc | 57 EasyFunctor functor; local 58 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 70 EasyFunctor functor; local 71 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); 83 EasyFunctor functor; local 84 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL); 96 EasyFunctor functor; local 97 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, FORWARD); 109 TranscendentalFunctor functor; local 110 functor.ExpectCostFunctionEvaluationIsNearlyCorrect(*cost_function, CENTRAL) 122 TranscendentalFunctor functor; local 135 TranscendentalFunctor functor; local 148 TranscendentalFunctor functor; local 196 EasyFunctor functor; local [all...] |
/system/core/include/utils/ |
Functor.h | 24 class Functor { 26 Functor() {} 27 virtual ~Functor() {}
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
callback.h | 93 template <class T> Callback0(const T& functor) 94 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 108 explicit HelperImpl(const T& functor) : functor_(functor) {} 123 template <class T> Callback1(const T& functor) 124 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} 138 explicit HelperImpl(const T& functor) : functor_(functor) {} 154 template <class T> Callback2(const T& functor) 155 : helper_(new RefCountedObject< HelperImpl<T> >(functor)) {} [all...] |
messagehandler.h | 51 // Helper class to facilitate executing a functor on a thread. 55 explicit FunctorMessageHandler(const FunctorT& functor) 56 : functor_(functor) {} 71 explicit FunctorMessageHandler(const FunctorT& functor) 72 : functor_(functor) {}
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSSelectorList.cpp | 124 template <typename Functor> 125 static bool forEachTagSelector(Functor& functor, const CSSSelector& selector) 129 if (functor(*current)) 133 if (forEachTagSelector(functor, *subSelector)) 142 template <typename Functor> 143 static bool forEachSelector(Functor& functor, const CSSSelectorList* selectorList) 146 if (forEachTagSelector(functor, *selector)) 167 SelectorNeedsNamespaceResolutionFunctor functor; local 181 SelectorHasShadowDistributed functor; local 195 SelectorCrossesTreeScopes functor; local [all...] |
/external/eigen/unsupported/Eigen/ |
AdolcForward | 98 template<typename Functor> class AdolcForwardJacobian : public Functor 103 AdolcForwardJacobian() : Functor() {} 104 AdolcForwardJacobian(const Functor& f) : Functor(f) {} 108 AdolcForwardJacobian(const T0& a0) : Functor(a0) {} 110 AdolcForwardJacobian(const T0& a0, const T1& a1) : Functor(a0, a1) {} 112 AdolcForwardJacobian(const T0& a0, const T1& a1, const T1& a2) : Functor(a0, a1, a2) {} 114 typedef typename Functor::InputType InputType; 115 typedef typename Functor::ValueType ValueType [all...] |
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/algorithm/string/detail/ |
formatter.hpp | 28 // const format functor ----------------------------------------------------// 30 // constant format functor 63 // identity format functor ----------------------------------------------------// 65 // identity format functor 77 // empty format functor ( used by erase ) ------------------------------------// 79 // empty format functor 90 // dissect format functor ----------------------------------------------------// 92 // dissect format functor
|
/external/eigen/doc/examples/ |
class_CwiseBinaryOp.cpp | 6 // define a custom template binary functor
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/parallel/ |
for_each_selectors.h | 54 /** @brief Functor execution. 70 /** @brief Functor execution. 86 /** @brief Functor execution. 102 /** @brief Functor execution. 118 /** @brief Functor execution. 142 /** @brief Functor execution. 166 /** @brief Functor execution. 182 /** @brief Functor execution. 196 /** @brief Functor execution. 210 /** @brief Functor execution [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/parallel/ |
for_each_selectors.h | 54 /** @brief Functor execution. 70 /** @brief Functor execution. 86 /** @brief Functor execution. 102 /** @brief Functor execution. 118 /** @brief Functor execution. 142 /** @brief Functor execution. 166 /** @brief Functor execution. 182 /** @brief Functor execution. 196 /** @brief Functor execution. 210 /** @brief Functor execution [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/parallel/ |
for_each_selectors.h | 54 /** @brief Functor execution. 70 /** @brief Functor execution. 86 /** @brief Functor execution. 102 /** @brief Functor execution. 118 /** @brief Functor execution. 142 /** @brief Functor execution. 166 /** @brief Functor execution. 182 /** @brief Functor execution. 196 /** @brief Functor execution. 210 /** @brief Functor execution [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/parallel/ |
for_each_selectors.h | 54 /** @brief Functor execution. 70 /** @brief Functor execution. 86 /** @brief Functor execution. 102 /** @brief Functor execution. 118 /** @brief Functor execution. 142 /** @brief Functor execution. 166 /** @brief Functor execution. 182 /** @brief Functor execution. 196 /** @brief Functor execution. 210 /** @brief Functor execution [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkTSearch.h | 34 // The most general form of SkTSearch takes an array of T and a key of type K. A functor, less, is 71 // Adapts a less-than function to a functor. 76 // Specialization for case when T==K and the caller wants to use a function rather than functor. 79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; local 80 return SkTSearch(base, count, target, elemSize, functor); 83 // Adapts operator < to a functor. 91 static SkTLessFunctor<T> functor; local 92 return SkTSearch(base, count, target, elemSize, functor); 95 // Similar to SkLessFunctionToFunctorAdaptor but makes the functor interface take T* rather than T. 104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; local [all...] |
/external/skia/include/core/ |
SkTSearch.h | 34 // The most general form of SkTSearch takes an array of T and a key of type K. A functor, less, is 71 // Adapts a less-than function to a functor. 76 // Specialization for case when T==K and the caller wants to use a function rather than functor. 79 static SkTLessFunctionToFunctorAdaptor<T, LESS> functor; local 80 return SkTSearch(base, count, target, elemSize, functor); 83 // Adapts operator < to a functor. 91 static SkTLessFunctor<T> functor; local 92 return SkTSearch(base, count, target, elemSize, functor); 95 // Similar to SkLessFunctionToFunctorAdaptor but makes the functor interface take T* rather than T. 104 static SkTLessFunctionToPtrFunctorAdaptor<T, LESS> functor; local [all...] |